File Descriptor allocation

Yann Droneaud ydroneaud at opteya.com
Thu Jan 26 09:33:22 EST 2017


Hi,

Le jeudi 26 janvier 2017 à 19:26 +0530, vish chopra a écrit :

> 
> i would like to know how a fd is allocated to a process?
> Flow chat of function calling, i.e which function are called during
> allocation of fd to a process.
> 

Have a look at get_unused_fd_flags() and fd_install()

(also anon_inode_getfd(), but you should probably not use it).

Regards.

-- 
Yann Droneaud
OPTEYA




More information about the Kernelnewbies mailing list