I'm still not able to figure out where exactly is the position of file
stored per task_struct.
struct file * itself is per process (task_struct) so file-f_pos is file
position per process, if thats what you are looking for. I hope you haven't
assumed that struct file itself is unique for a file,
-Original Message-
From: Rajat Sharma [mailto:fs.ra...@gmail.com]
Sent: Wednesday, January 30, 2013 11:16 AM
To: Pranay Kumar Srivastava
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Where does kernel store per task file position?
I'm still not able to figure out where
@kernelnewbies.org
Subject: Re: Where does kernel store per task file position?
I'm still not able to figure out where exactly is the position of file
stored per
task_struct.
struct file * itself is per process (task_struct) so file-f_pos is file
position per
process, if thats what you are looking