lkml.org 
[lkml]   [2013]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf: Move fs.* to generic lib/lk/

* Borislav Petkov <bp@alien8.de> wrote:

> On Thu, Nov 21, 2013 at 12:17:44PM +0100, Ingo Molnar wrote:
> > > However, now that I think of it, the naming is kinda imprecise
> > > having only "kernel" in it - it only denotes that it is a library of
> > > stuff that has grown in the kernel.
> > >
> > > So how about
> > >
> > > tools/lib/ktools/
> > > tools/lib/kutils/
> > > tools/lib/kernel-tools/
> > > tools/lib/kernel-utils/
> > > ...
> > >
> > > and
> > >
> > > libktools.so
> > > libkutils.so
> > > ...
> > >
> > > ?
> > >
> > > I'd prefer ktools as in the tools/ directory of the kernel repo.
> >
> > So what does each name mean, what would they be used for and what's
> > the difference between them?
>
> Oh no, I'm only proposing multiple libraries but multiple names to
> choose *only* *one* from them - the one which we think fits best.
>
> Basically I wanna say: "this is the library of tools which grew in
> the tools/ directory of the kernel repo".
>
> Thus I'm proposing
>
> tools/lib/ktools/
>
> as a path and
>
> libktools.so
>
> as a library name, because, IMHO, this name is closer to the reality.
>
> tools/lib/kernel/ is also ok - it does not describe the collection
> of functionality that precisely, IMHO, that's all.
>
> Am I even making sense here?

Ok - so why not call it tools/lib/kernel/ or tools/lib/kernelapi/ or
tools/lib/kapi/?

That's really what is common about it: it offers various helper
methods to interface with the Linux kernel: debugfs, procfs, sysfs
handling routines with no policy, just pure, obvious helpers to use
kernel functionality.

[ Naming it 'ktools' is not optimal because these are already tools/
... the secondary meaning of 'tools' in that context is easily lost.
Same goes for 'kutils', the secondary meaning is confusing (to me). ]

... and just in case you are wondering why I'm making a fuss about it:
a naming discussion for something fundamental as this isn't bikeshed
painting, we really want people to look at that place to readily stuff
kernel related helpers into, and the name should make that very
obvious.

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-11-21 13:41    [W:1.091 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site