Re: Suggested dual human/binary interface for proc/devfs

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sat Apr 08 2000 - 10:46:13 EST


"H. Peter Anvin" <hpa@transmeta.com> said:

[...]

> The *only* reason I want to retain any kind of numeric path is to make
> standardized SNMP MIBs easier to maintain. I'm not suggesting retaining
> sysctl() or whatever. What I suggest is more something like this:

> a) A registrar for the MIBs (name-to-number mapping.) I volunteer to do
> this.

LANA boss you'll be.

> b) A way to find the number corresponding to a name. Ideally this would
> be the st_ino field when doing stat(), allowing ls -li to see the
> numbers quickly and easily, although if having repeated inode numbers
> within the filesystem is deemed a bad idea this could be a ioctl().

Hard links give you repeated inode numbers for names.

> c) [OPTIONALLY] having the filesystem allow lookup() on the numeric name
> as well as the alphanumeric one, i.e. snmpd could
> open("/proc/sys/10/5/6/19/8") instead of
> open("/proc/sys/net/ipv4/conf/eth0/proxy_arp").

More hard links, from the number names too.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- 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 : Sat Apr 15 2000 - 21:00:11 EST