bug-hurd
[Top][All Lists]
Advanced

[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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]