LinuxQuestions.org
Review your favorite Linux distribution.
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 05-28-2009, 10:00 AM   #1
ao.yuan.young
LQ Newbie
 
Registered: May 2009
Posts: 12

Rep: Reputation: 0
Question kernel-2.4.20 task_struct -> session


There was an attribute named session in task_struct of kernel-2.4.20, but it was removed in kernel-2.6.27.

Could anyone explain the function of attribute session, and why it was removed ??
 
Old 05-29-2009, 09:04 AM   #2
ao.yuan.young
LQ Newbie
 
Registered: May 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ao.yuan.young View Post
There was an attribute named session in task_struct of kernel-2.4.20, but it was removed in kernel-2.6.27.

Could anyone explain the function of attribute session, and why it was removed ??
Now, the attribute session is not an attribute of struct task_struct directly. But it is still an attribute of struct task_struct, for it is wrappd by struct signal_struct. You can set its value by calling set_task_session defined in kernel-2.6.20/include/linux/sched.h.
 
  


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
kernel module/program to print the different fields of task_struct and mm_struct muskvar Programming 1 02-17-2009 09:35 AM
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


All times are GMT -5. The time now is 02:25 AM.

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