[lkml]   [2019]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v1 12/22] docs: driver-api: add .rst files from the main dir
Hi David,

Em Wed, 19 Jun 2019 14:39:10 +0100
David Howells <> escreveu:

> Mauro Carvalho Chehab <> wrote:
> > > > -Documentation/nommu-mmap.rst
> > > > +Documentation/driver-api/nommu-mmap.rst
> Why is this moving to Documentation/driver-api?

Good point. I tried to do my best with those document renames, but
I'm pretty sure some of them ended by going to the wrong place - or
at least there are arguments in favor of moving it to different
places :-)

The driver-api ended to be where most of the stuff has been moved,
as this is the main kAPI dir (there is also a core-api dir for kAPI too).

I tend to place there stuff that has a mix of kAPI and uAPI at
driver-api, as usually such documents are written assuming that
the one that would be reading it is a Kernel developer.

> It's less to do with drivers
> than with the userspace mapping interface. Documentation/vm/ would seem a
> better home.
> Or should we institute a Documentation/uapi/? Though that might be seen to
> overlap with man2. Actually, should this be in man7?

Actually, there is an userspace-api dir too. While the logs show that
this was created back on 2017, I only noticed it very recently.

Re-checking the file, I see your point: there are lots of
userspace-relevant contents there. Yet, it also mentions kAPI internals,
like a reference for file and vm ops (at "Providing shareable character
device support" session):


It is up to MM people and Jon to decide where to place it.

In any case, the best (long term) seems to split it on separate files,
one with kAPI and another one with uAPI (just like may other subsystem
specific docs).


 \ /
  Last update: 2019-06-19 16:17    [W:0.036 / U:6.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site