mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* NEWBEE "reverse ioctl" or someting like
@ 2001-05-03 12:29 ` sébastien person
  2001-05-03 12:51   ` Nikolas Zimmermann
                     ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: sébastien person @ 2001-05-03 12:29 UTC (permalink / raw)
  To: liste noyau linux, liste dev network device

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NEWBEE "reverse ioctl" or someting like
  2001-05-03 12:29 ` NEWBEE "reverse ioctl" or someting like sébastien person
@ 2001-05-03 12:51   ` Nikolas Zimmermann
  2001-05-03 13:57   ` sébastien person
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Nikolas Zimmermann @ 2001-05-03 12:51 UTC (permalink / raw)
  To: sébastien person; +Cc: linux-kernel

On Thursday 03 May 2001 14:29, 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
yes yes all your base are belong to us :)
> 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 ??
copy_to_user ?
>
> 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/

Bye
 Bye
  Niko

-- 
Nikolas Zimmermann
wildfox@kde.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NEWBEE "reverse ioctl" or someting like
  2001-05-03 12:29 ` NEWBEE "reverse ioctl" or someting like sébastien person
  2001-05-03 12:51   ` Nikolas Zimmermann
@ 2001-05-03 13:57   ` sébastien person
  2001-05-03 15:19     ` Joseph Bueno
  2001-05-03 14:54   ` volodya
  2001-05-03 22:34   ` Markus Schaber
  3 siblings, 1 reply; 6+ messages in thread
From: sébastien person @ 2001-05-03 13:57 UTC (permalink / raw)
  To: Mark Hahn; +Cc: liste noyau linux

Le Thu, 3 May 2001 08:46:05 -0400 (EDT)
Mark Hahn <hahn@coffee.psychology.mcmaster.ca> à écrit :

> > I think that use of pipe isn't preconised because I must fork process
> > to use pipe,
> 
> I guess you mean "because a user-level process would block on the pipe".
> and you don't want to block.  the alternative is to use a signal.

yes but with a signal I am able to share data beetween user space and kernel
space ? I must also use copy_to_user ?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NEWBEE "reverse ioctl" or someting like
  2001-05-03 12:29 ` NEWBEE "reverse ioctl" or someting like sébastien person
  2001-05-03 12:51   ` Nikolas Zimmermann
  2001-05-03 13:57   ` sébastien person
@ 2001-05-03 14:54   ` volodya
  2001-05-03 22:34   ` Markus Schaber
  3 siblings, 0 replies; 6+ messages in thread
From: volodya @ 2001-05-03 14:54 UTC (permalink / raw)
  To: sébastien person; +Cc: liste noyau linux, liste dev network device

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 1430 bytes --]


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NEWBEE "reverse ioctl" or someting like
  2001-05-03 13:57   ` sébastien person
@ 2001-05-03 15:19     ` Joseph Bueno
  0 siblings, 0 replies; 6+ messages in thread
From: Joseph Bueno @ 2001-05-03 15:19 UTC (permalink / raw)
  To: sébastien person; +Cc: Mark Hahn, liste noyau linux

sébastien person wrote:
> 
> Le Thu, 3 May 2001 08:46:05 -0400 (EDT)
> Mark Hahn <hahn@coffee.psychology.mcmaster.ca> à écrit :
> 
> > > I think that use of pipe isn't preconised because I must fork process
> > > to use pipe,
> >
> > I guess you mean "because a user-level process would block on the pipe".
> > and you don't want to block.  the alternative is to use a signal.
> 
> yes but with a signal I am able to share data beetween user space and kernel
> space ? I must also use copy_to_user ?

You will not get any data with the signal but your user-level application
can use an ioctl when it receives this signal and get the data.

--
Joseph Bueno
NetClub/Trader.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NEWBEE "reverse ioctl" or someting like
  2001-05-03 12:29 ` NEWBEE "reverse ioctl" or someting like sébastien person
                     ` (2 preceding siblings ...)
  2001-05-03 14:54   ` volodya
@ 2001-05-03 22:34   ` Markus Schaber
  3 siblings, 0 replies; 6+ messages in thread
From: Markus Schaber @ 2001-05-03 22:34 UTC (permalink / raw)
  To: sébastien person; +Cc: liste noyau linux, liste dev network device

Hello,

On Thu, 3 May 2001, sébastien person wrote:

> 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

What about using /proc/ ?

Gruß,
Markus
-- 
| Gluecklich ist, wer vergisst, was nicht aus ihm geworden ist.
+---------------------------------------.     ,---------------->
http://www.uni-ulm.de/~s_mschab/         \   /
mailto:markus.schaber@student.uni-ulm.de  \_/



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-05-03 22:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.10.10105030845110.4386-100000@coffee.psychology.mcmaster.ca>
2001-05-03 12:29 ` NEWBEE "reverse ioctl" or someting like sébastien person
2001-05-03 12:51   ` Nikolas Zimmermann
2001-05-03 13:57   ` sébastien person
2001-05-03 15:19     ` Joseph Bueno
2001-05-03 14:54   ` volodya
2001-05-03 22:34   ` Markus Schaber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®