I think you've missed as big piece of kernel/user space... you need to
read up on system calls and ioctls.... a user space application can't just
call functions in kernel space, I'd recommened you dig up some info on
UNIX/Linux before going straight for programming it... it isn't DOS as has
been pointed out ...and basing anyhing on a DOS knowledge is not advisable
maybe googling for linux kernel system call might give you a good start as
trying to explain it here would be a lengthy procedure..
On Fri, 13 Jul 2001, Oliver Ryan wrote:
>> 1. if I want to use copy_to/from_user in a kernel module, where do the user
> variables to be passed need to be defined? Can they be in a header file
> that I include in the kernel module, and which is also included in the user
> space program where the values of the variables are set?
>> 2. is there a kernel module function call equivalent to the user space call
> of time(NULL)? What's its header file?
>> Thanks..the help is appreciated.
>> Dept. of Physics,
> National University of Ireland, Galway,
>> Tel: +353 (0)91 524411 ext. 2716
> Fax: +353 (0)91 750584
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!