Accessing data structure from kernel space
Hello linux-os,
Quoted 16 lines · --- linux-os
Quoted 2 lines · linux lover
Hello all,
I have one linked list data structure addedto
Quoted 2 lines
a file in kernel source code which has some kernel info. I want to acess that linked list structure
from
Quoted 2 lines
user space. Is that possible??
Also how to add own system call usable atuser
Quoted 4 lines
level from kernel module??
regards,linux_lover.
Quoted 6 lines
Many people will tell you to use the /proc file-system.
I suggest you make a simple "character" driver and access
your kernel structure usingioctl()ormmap().
How can i access that linked list structure in
kernel at user space say if i write character driver as /dev/readll then how to link that structure to device driver
?
Quoted 10 lines
You don't add your own system call
__ever__, even if you
are a long-time kernel developer. The current API already
has lots of standard interface capabilities. Thinking, even
for an instant, that you need more means that you don't
understand Unix/Linux.
Quoted 9 lines
Cheers,
Dick Johnson
Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by
Dictator Bush.
98.36% of all statistics are
fiction.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 24 lines · linux lover
Hello linux-os,
Quoted 16 lines · --- linux-os
Quoted 2 lines · linux lover
Hello all,
I have one linked list data structure addedto
Quoted 2 lines
a file in kernel source code which has some kernel info. I want to acess that linked list structure
from
Quoted 2 lines
user space. Is that possible??
Also how to add own system call usable atuser
Quoted 4 lines
level from kernel module??
regards,linux_lover.Quoted 6 lines
Many people will tell you to use the /proc file-system.
I suggest you make a simple "character" driver and access
your kernel structure usingioctl()ormmap().
Quoted 5 lines
How can i access that linked list structure in
kernel at user space say if i write character driver as/dev/readllthen how to link that structure to device driver
?
Gawd.... man ioctl. Execute that. Learn. Write code that handles such a call in your module.man mmap. execute that. Learn. Write code that handles memory-mapping in your module.
Quoted 20 lines
Quoted 10 lines
You don't add your own system call
__ever__, even if you
are a long-time kernel developer. The current API already
has lots of standard interface capabilities. Thinking, even
for an instant, that you need more means that you don't
understand Unix/Linux.Quoted 9 lines
Cheers,
Dick Johnson
Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by
Dictator Bush.
98.36% of all statistics are
fiction.
Quoted 10 lines
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Cheers,
Dick Johnson
Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.