lkml.org 
[lkml]   [1999]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] replacing "/dev/root" in /proc/mounts
From
Date
Erik Andersen <andersen@xmission.com> writes:

|> I was guessing how Wakko might have written a stat based app, and then I
|> go on to say this violates the interface by peeking under the kernel's
|> skirt. I had already checked, and the MAJOR and MINOR macros in kdev_t.h
|> are wrapped up an inside #ifdef __KERNEL__, and so are not available to
|> user space. User space simply has no way of knowing what a dev_t might
|> be.

I don't talk about MAJOR and MINOR, but major and minor (and makedev).
These are available for user space and the correct way to convert dev_t
values.

--
Andreas Schwab "And now for something
SuSE Labs completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

-
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/

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