Re: kernel and user mode message communication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 
> 
> -
> : 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
-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux