[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some questions about libports and notification of ports
From: |
Thomas Bushnell BSG |
Subject: |
Re: Some questions about libports and notification of ports |
Date: |
Mon, 25 Aug 2008 15:48:19 -0700 |
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
- Re: Some questions about libports and notification of ports, (continued)
- Re: Some questions about libports and notification of ports, zhengda, 2008/08/21
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/22
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/23
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/23
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/23
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/24
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/24
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/25
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/25
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/25
- Re: Some questions about libports and notification of ports,
Thomas Bushnell BSG <=
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/26
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/26
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/26
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/26
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/26
- Re: Some questions about libports and notification of ports, Thomas Bushnell BSG, 2008/08/26
- Re: Some questions about libports and notification of ports, Da Zheng, 2008/08/27