logo       

Re: how to report network device errors to userspace?: msg#00132

Subject: Re: how to report network device errors to userspace?
>>>>> "Andi" == Andi Kleen <ak@xxxxxxx> writes:

Andi> On Wed, Jun 19, 2002 at 05:19:14PM -0400, Chris Friesen wrote:
>> Currently the way we are doing it for ethernet is that the
>> userspace app calls a device ioctl() with SIOCGMIIREG multiple
>> times per second, but it would be nice to have the driver notify us
>> asynchronously.

Andi> I would suggest sending a netlink message from the driver.
Andi> That's really what netlink was designed for.

Hmmm, the broader issue here is that we should aim for a generic
interface - if netlink is the way, maybe it would be worth documenting
it and moving towards getting it into more/all drivers.

I have had this question from other sides as well - hadn't thought of
netlink.

Cheers,
Jes



<Prev in Thread] Current Thread [Next in Thread>