From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Header organization/separation rule in kernel
Date: Sun, 10 Dec 2017 22:31:22 +0100 [thread overview]
Message-ID: <20171210213122.GA19494@kroah.com> (raw)
In-Reply-To: <CAJQX3DzGWsbO4RRurFdQQSniLDQaAW-kFh2_LyRakEX154LFtg@mail.gmail.com>
On Sun, Dec 10, 2017 at 11:21:46PM +0800, Shiyao MA wrote:
> 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?
Some things are only for the networking subsystem, and some things are
for any other part of the kernel.
Hope this helps,
greg k-h
next prev parent reply other threads:[~2017-12-10 21:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-10 15:21 Header organization/separation rule in kernel Shiyao MA
2017-12-10 21:31 ` Greg KH [this message]
2017-12-10 21:38 ` Ozgur
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171210213122.GA19494@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.