Re: Where does kernel store per task file position?

2013-01-29 Thread Rajat Sharma
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,

RE: Where does kernel store per task file position?

2013-01-29 Thread Pranay Kumar Srivastava
-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

Re: Where does kernel store per task file position?

2013-01-29 Thread Rajat Sharma
@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