LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Function in kernel space called form user space.. (https://www.linuxquestions.org/questions/programming-9/function-in-kernel-space-called-form-user-space-738319/)

Linux_Kid_ 07-07-2009 09:13 AM

Function in kernel space called form user space..
 
Hi All ,

I wanna write a file in kernel space but from my searching I can to know that instead of writeing file in kernel space ,I can write data to user space by copy_to_user space.

But link is missing ...I dont know how will my user space will access kernel space means my function in kernel space which will do copy_to_user /....How my user space function will call my kernel level function ..

Can any one of you provide me with some example file which are doing this .I know every char driver is using it ...but i could not trace back how user level function is accessing it ...

Please co-operate ,i m confused between user space and kernel space.

Regards

ravishankar.g 09-22-2009 03:28 AM

Hi,

You can access kernel space functions from user space through file operations.

blues1207 09-22-2009 04:34 AM

you can't call kernel API in user space


All times are GMT -5. The time now is 01:07 AM.