[lkml]   [2001]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] proc_lookup not exported
Alexander Viro wrote:
> On Wed, 18 Apr 2001, Jeff Golds wrote:
> > I don't see why not. I created my own mkdir and rmdir handlers in my
> > module. I'd like to use the lookup function that proc supplies instead
> > of supplying my own, why shouldn't I be allowed to do that? It's not as
> > if I am doing something other than what normally happens: I am
> > assigning inode_operations::lookup to be proc_lookup.
> Use ramfs as a model; procfs is not well-suited for that sort of work.

I don't want to cause trouble, but it sure seems like the kernel source
tree could be better organized. For example, in every C application I
have seen, global header files specify interfaces into the relevant
module and local header files are for intramodule use only. In the
Linux kernel tree, ALL the header files are global, thus, you can't
easily tell what things are exported and what is not as you can't just
look at the header file. Isn't this against what open source is about:
Requiring inside knowledge about the code?

I don't understand why local header files are not used. It's easy to
prevent people from using the wrong functions, simply make a script that
checks to see if people are including the local header files from other
modules and return an error if they are. This could be checked at build

Maybe this is all old news, I am rather new to the Linux kernel, but
perhaps this is something that could be addressed in future (2.5?)
versions of the kernel.


Jeff Golds
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:26    [W:0.047 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site