LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-14-2006, 01:44 AM   #1
swaroopjoshi
LQ Newbie
 
Registered: Nov 2006
Location: Bangalore, India
Posts: 11

Rep: Reputation: 0
task_struct access


Hi all,
Is there a way to add a kernel module of my own, lets say process_access which takes pid of a process as i/p, and returns task_struct contents of that process to my application?
thanks,
Swaroop
 
Old 11-15-2006, 01:25 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Direct pointer to task_struct, no. Copying contents of that struct - that's possible. Adding it to /proc may be one of the easiest ways.
 
  


Reply



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
task_struct of a process swaroopjoshi Linux - Kernel 1 11-09-2006 04:08 PM
differences in task_struct between 2.4 and 2.6 ploo Linux - Kernel 3 04-24-2006 04:09 AM
differences in task_struct between 2.4 and 2.6 ploo Linux - General 1 04-20-2006 12:36 PM
accessing task_struct of process shukla_chanchal Linux - General 1 11-04-2005 09:27 PM
Stuct task_struct dami Programming 1 10-13-2003 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration