LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] kernel time() +passing user variables

[ILUG] kernel time() +passing user variables

Dave Airlie airlied at csn.ul.ie
Sat Jul 14 15:38:56 IST 2001


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

Dave.


On Fri, 13 Jul 2001, Oliver Ryan wrote:

> Hi,
>
> 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.
>
> Ollie.
>
> Dept. of Physics,
> National University of Ireland, Galway,
> Galway,
> Ireland.
>
> 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






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell