On Mon, 2008-08-25 at 19:31 +0200, Da Zheng wrote: > I don't want to destroy the port. I just want to check if all ports have > already been destroyed before the goaway routine is called.
To check, you use the counting routines provided. > The device file is created by a translator to help other user programs > to open the device. > For example, we can create a device file /dev/eth0 with the translator. > When the user program calls file_name_lookup() on the file and > device_open() as I do in the code, I actually open the device of eth0. > So device_file here can be /dev/eth0, /dev/eth1, etc. You are opening that file as if you expect it to be there, and to return you a port you can do device_open on. That seems very confused to me. You call device_open on master device files. Thomas