Hello,

Given a file pointer (struct file *), what is the most effecient way
to find out the pid of the process that manages this file pointer?

I look into the file structure, but still havent seen any way to do that.

There is one solution: traverse all the processes in the system, and
compare my file pointer with their list of files, but that seems so
ineffective, so I dont like that.

Thank you,
Hieu

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to