All of lore.kernel.org
 help / color / mirror / Atom feed
* Header organization/separation rule in kernel
@ 2017-12-10 15:21 Shiyao MA
  2017-12-10 21:31 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Shiyao MA @ 2017-12-10 15:21 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-10 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-10 15:21 Header organization/separation rule in kernel Shiyao MA
2017-12-10 21:31 ` Greg KH
2017-12-10 21:38   ` Ozgur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.