public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Golds <jgolds@resilience.com>
To: Alexander Viro <viro@math.psu.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] proc_lookup not exported
Date: Wed, 18 Apr 2001 15:46:36 -0700	[thread overview]
Message-ID: <3ADE194C.ED9C1CAA@resilience.com> (raw)
In-Reply-To: <Pine.GSO.4.21.0104181747460.15153-100000@weyl.math.psu.edu>

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
time.

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

-- 
Jeff Golds
jgolds@resilience.com

      reply	other threads:[~2001-04-18 22:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-17 23:59 [PATCH] proc_lookup not exported Jeff Golds
2001-04-18  0:43 ` Alexander Viro
2001-04-18 16:37   ` Jeff Golds
2001-04-18 21:48     ` Alexander Viro
2001-04-18 22:46       ` Jeff Golds [this message]

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=3ADE194C.ED9C1CAA@resilience.com \
    --to=jgolds@resilience.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@math.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox