Header organization/separation rule in kernel

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

 



Hi,

I wonder the header separation rule in kernel.
To make this question concrete, for example, let's targeting genetlink.h

It can be found in:

http://elixir.free-electrons.com/linux/latest/source/include/net/genetlink.h
http://elixir.free-electrons.com/linux/latest/source/include/linux/genetlink.h
http://elixir.free-electrons.com/linux/latest/source/include/uapi/linux/genetlink.h


so basically three parts, in uapi, linux/genetlink.h, and net/genetlink.h.

I understand the necessity of uapi, but why divide the genetlink.h in
linux and the net folder?
What's the benefit of such separation?



-- 
Best,
Shiyao

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://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