Re: task struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 19, 2005 at 06:06:07PM +0000, Talib Alim wrote:
> I was going through task_struct and wanted to know, if there is any field 
> similar to private_data field in struct file, where I can put my driver's 
> per process information.
> 
> In current implementation of my driver I am maintaning per process 
> information in driver's data struct, but it would be much more efficient if 
> I can associate this info with task_struct or any thing which can be 
> accessed via current->

Nope, can't do this, put it on the file pointer passed to your driver.
That's what it is there for.

Good luck,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux