lkml.org 
[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: NEWBEE "reverse ioctl" or someting like

a) just make your management app periodically issue
ioctl(fd, GET_CONFIG_INFO, ...)
and make the driver return -1 when the info is not present

b) make a new device and open it with management app

c) make a new node in /proc and open it with management app
(cons: requires /proc to be mounted)

d) kernel-user netlink socket (never tried myself)

Vladimir Dergachev

On Thu, 3 May 2001, [ISO-8859-1] sébastien person wrote:

> hi,
>
> I've made a network driver wich is attached to the serial port.
> The network hardware is able to return information to the pc. theses
> informations are belong to the configuration of the hardware. I
> succeed on receive information in the driver but I've no idea to alert
> higher process (like configuration app ...) that I've received something
> (wich is not network data like TCP or ARP etc ...).
>
> I think that use of pipe isn't preconised because I must fork process
> to use pipe, I search something like ioctl but in the other way :
>
> kernel process ---> user process
>
> Is somebody know the best and easy way ??
>
> thank (I hope this is the right place to ask)
>
> sebastien person
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.044 / U:0.572 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site