From mboxrd@z Thu Jan 1 00:00:00 1970 From: ydroneaud@opteya.com (Yann Droneaud) Date: Thu, 26 Jan 2017 15:33:22 +0100 Subject: File Descriptor allocation In-Reply-To: References: Message-ID: <1485441202.13974.3.camel@opteya.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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