Re: kernel and user mode message communication

From: Stephen Hemminger
Date: Thu Jan 19 2006 - 23:00:34 EST


On Fri, 20 Jan 2006 14:17:20 +1100 (EST)
yh@xxxxxxxxxxxxxx wrote:

> Hello,
>
> I am porting three device drivers to linux. One function is that for
> every received packet, the device driver sends a message to notify the
> applications for processing. But I could not do it in linux, IPC seems
> not designed for linux kernel.

Use AF_PACKET, frame diverter or one of the standard mechanisms.
There is no reason to make your device have special hooks.

> This is a very basic feature for device driver to communicate
> applications via messages, I am sure there must be some way in linux
> where the kernel can talk to user mode applications via messages or
> similar alternative mechanism (not signal).
>
> Any advices or sample codes will be much appreciated.
>
> Thank you.
>
> Jim
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html