Skip to contentSkip to conversation

user-space <-> kernel-space

DISCUSSION Henrique Gobbi 4 participants 4 messages Feb 14, 2002 – Feb 15, 2002

lore
Share & tools
lore
#0 lore raw

Hello !!!

I am trying to develop a line analyzer to my multi-serial card but I am not seeing a good solution to send data from the driver to the application in the user-space.

Inittialy, I thought in use a char device, but all my minors are beeing used and I don't wanna to use another major.

I'd like to know two things:
1 - Is there any way to use more than 256 minors under a major 2 - Is there a simple way to send data from the kernel-space to the user-space?

Any help is very welcome
thanks in advance

Signature · 3 lines
Henrique Gobbi 
Linux User: 237230
Cyclades Brasil
#1 lore raw
Followup to:  <[email protected]>
By author:    Henrique Gobbi <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 7 lines

Hello !!!

I am trying to develop a line analyzer to my multi-serial card but I am not seeing a good solution to send data from the driver to the application in the user-space.

Quoted 5 lines

Inittialy, I thought in use a char device, but all my minors are beeing used and I don't wanna to use another major.

I'd like to know two things:
1 - Is there any way to use more than 256 minors under a major

Not until we get a larger dev_t.

Quoted 2 lines

2 - Is there a simple way to send data from the kernel-space to the user-space?

A character device node.

Use a minor from the miscdevice series.

-hpa

Signature · 3 lines
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<[email protected]>
#2 lore raw
In reply to Henrique Gobbi

Hello.

Am Freitag, 15. Februar 2002 03:14 schrieb H. Peter Anvin:

Quoted 4 lines
Quoted 2 lines

2 - Is there a simple way to send data from the kernel-space to the user-space?

A character device node.

Because I am new to this things, please point me to places to find more information / documentation / examples.

Thanks,

Joachim Franek
Ernst-Reuter-Str. 8, D-63486 Bruchkoebel
www.de-franek.de
rs485.de-franek.de

#3 lore raw
In reply to Henrique Gobbi
Quoted 4 lines · Joachim Franek

Am Freitag, 15. Februar 2002 03:14 schrieb H. Peter Anvin:

Quoted 1 line

A character device node.

Because I am new to this things, please point me to places to find more information / documentation / examples.

http://www.kernelnewbies.org/ , the kernelnewbies mailing list, and the #kernelnewbies IRC channel are good starting points.

Erik

Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/