Use the "current" macro to get the task_struct pointer. This structure will have list of opened files and their descriptors.
OR send some ioctl to kernel space and you will direct get the struct file pointer in the kernel space ioctl function. Once, you have the file pointer, you can set its offset to EOF. On 5/24/05, Shrinand Javadekar <[EMAIL PROTECTED]> wrote: > Every process has its own file table where its stores apart from other > details the fds of the files it has opened and the current offset from > where the next read/write operation will begin. > > How do I access this table in my kernel module? I want to change the > offset of a particular file to EOF. > > -Shri > -- ----- KD. http://www.geocities.com/kirandivekar/ -- ______________________________________________________________________ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/mailing-list/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.