LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-07-2013, 06:15 AM   #1
rahulbolia
LQ Newbie
 
Registered: Mar 2013
Location: India
Distribution: Ubuntu
Posts: 3

Rep: Reputation: Disabled
Question arguments of mknod command


hi!!
i want to send some information from user space to kernel.
can somebody please tell what MAJOR and MINOR numbers should i use to create a file in the /dev directory for this purpose.
 
Old 03-07-2013, 06:36 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,771

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Your question makes no sense. What information do you want to send to which component of the kernel?
 
Old 03-07-2013, 08:01 AM   #3
rahulbolia
LQ Newbie
 
Registered: Mar 2013
Location: India
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
i want the user process to send its PID to a kernel module.
 
Old 03-07-2013, 08:24 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,771

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Which kernel module is interested in a random process' PID?
 
Old 03-07-2013, 08:31 AM   #5
rahulbolia
LQ Newbie
 
Registered: Mar 2013
Location: India
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
i am writing my own kernel module and i just want the user process to tell its pid to the kernel module.
And just to answer your question my kernel module is very much interested in random things.

Last edited by rahulbolia; 03-07-2013 at 08:36 AM.
 
  


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
[SOLVED] How do we create Device Node Directory using Mknod command jendeavor Linux - Hardware 4 11-05-2012 12:12 AM
a.out command arguments shariefbe Programming 1 11-24-2011 10:30 AM
how to reinstall mknod command newusermike Linux - Newbie 2 08-13-2005 04:15 PM
see what arguments are available for a command naijaguy Linux - Newbie 3 08-12-2004 10:05 PM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 02:25 AM


All times are GMT -5. The time now is 08:47 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