RE: [patch-2.3.46-p2] P6 microcode update support

From: Dunlap, Randy (randy.dunlap@intel.com)
Date: Wed Feb 16 2000 - 13:17:55 EST


Hi,

I don't have any comments on the microcode updating,
but on 1/16/2000, Linus wrote that "sysctl is deprecated"
(entire quote is below).

So I'm just trying to understand if there's been a
flip-flop on using sysctl and what is the current
advice.

Thanks,
Randy

<quote>
In article <8725685E.007519CF.00@d53mta03h.boulder.ibm.com>,
 <breed@almaden.ibm.com> wrote:
>
>I wrote an wireless ethernet driver awhile ago
>(http://www.cse.ucsc.edu/~breed/airo.html) and found the /proc interface to
>be an extremely useful interface to the many knobs in the card. I am a bit
>uncomfortable defining my own namespace in the /proc file system (did it
>anyway:) and I've been wondering for a while if there are guidelines
>somewhere on where things should go. I would really like to tap into an
>existing directory for ethX for example...

The thing to do is to create a

        /proc/drivers/<drivername>/

directory. The /proc/drivers/ directory is already there, so you'd
basically do something like

        create_proc_info_entry("driver/mydriver/status", 0, NULL,
mydriver_status_read);

to create a "status" file (etc etc).

>And finally, what's up with sysctl? Are driver writers recommended to use
>that over extending /proc or is it deprecated? Again guide lines would be
>nice.

sysctl is deprecated. It's useful in one way only: it has some nice
functions that can be used to add a block of /proc names. However, it
has other downsides (allocating silly numbers etc - there should be no
need for that, considering that the /proc namespace is alreayd a
perfectly good namespace).

                Linus
</quote>

> -----Original Message-----
> From: Tigran Aivazian [mailto:tigran@aivazian.fsnet.co.uk]
> Sent: Wednesday, February 16, 2000 9:27 AM
> To: Linus Torvalds
> Cc: linux-kernel@vger.rutgers.edu; hpa@transmeta.com
> Subject: Re: [patch-2.3.46-p2] P6 microcode update support
>
>
> Linus Torvalds wrote:
> > ... BUT ...
>
> it is a pleasure to work with Linus - one has to rewrite the
> same thing
> twice a day which makes one learn all the ways of doing things :)
>
> Ok, I will look at rewriting it as a sysctl thing - I need to look at
> the current state of /proc/sys interface - Al Viro said a
> long time ago
> that it is very clean - let's see...
>
> Regards,
> Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:15 EST