LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-01-2009, 02:26 PM   #1
saurabhchokshi
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
Write into File from Kernel and read the same file from User space


Hello ,

I have done character device file with the IOCTL and I can write into character device from userspace with ioctl system calls.

However, I am not able to write from the kernel by simply calling ioctl_device function. I am not able to figure out what needs to be defined in struct inode .

Kindly request you to help me out.

Thanks,
Saurabh Chokshi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write kernel log directly to a file without user action? 10110111 Linux - General 5 04-23-2009 08:29 PM
File read/write on /dev/ttyS0 is not working on kernel silent boot ganesha.ld Linux - Embedded & Single-board computer 0 12-23-2008 08:06 AM
problem configure RHEL5 kernel to read & write NTFS file system. hocheetiong Linux - Newbie 3 07-08-2008 11:49 PM
Read file in kernel space aluser Programming 2 08-22-2006 09:28 AM


All times are GMT -5. The time now is 10:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration