Query on freeing of new_fdt->open_fds inside src/fs/file.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
   I am unable to understand how

   new_fdt->open_fds can be freed in __free_fdtable when its an
unsigned long in files_struct ?


Details:

FUNCTION: dup_fd
http://lxr.free-electrons.com/source/fs/file.c#L261

LINE : 282 : new_fdt->open_fds = newf->open_fds_init;

files_struct : http://lxr.free-electrons.com/source/include/linux/fdtable.h#L45
unsigned long open_fds_init[1];


Cheers,
Pavi

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux