Cloning 'struct file'

Daniel Baluta daniel.baluta at gmail.com
Wed Jan 26 05:59:30 EST 2011


Hi all,

We know that each file descriptor fd, has an associated 'struct file'. How is
the 'struct file' copied/cloned at fork?

Are all fields of 'struct file' inherited by child? I want to know if
there is a function
which takes a struct file* and creates a consistent copy/clone of it.

thanks,
Daniel.



More information about the Kernelnewbies mailing list