lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] /dev/mem: Add kernel config option to omit this device.
Date
On Thursday 29 March 2012 10:30:14 H. Peter Anvin wrote:
> On 03/29/2012 10:22 AM, Maarten ter Huurne wrote:
> > Many systems don't need /dev/mem, so make it optional.
> > It saves some space on embedded systems.
> >
> > Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
>
> I would like to see it being modular if it is made optional. I think
> that would be the right thing anyway.

By modular, do you mean splitting off the code from drivers/char/mem.c into
a new source file?

In mem.c there are several static functions used by more than one device,
but I think /dev/mem, /dev/kmem and /dev/port are relatively independent of
the other devices, so splitting off those three would be an option.

Bye,
Maarten



\
 
 \ /
  Last update: 2012-03-29 21:29    [W:0.042 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site