[Sunhelp] [spribyl at enteract.com: dev_t to name]
Steve Pribyl
spribyl at enteract.com
Thu Aug 24 08:26:56 CDT 2000
PS does it somehow. That is what I really am trying to get at.
What tty a process in running on. I am reading the psinfo file in the
proc dir.
Steve Pribyl
spribyl at enteract.com
http://www.enteract.com/~spribyl
On Wed, 23 Aug 2000, Greg wrote:
> > Any body know the C function to get the device name(Path) from the
> > dev_t(major and minor number)?
>
> How would that work? name->dev_t is a one-way mapping, dev_t->driver is a
> one-way mapping. But multiple files on a system (spread across any number
> of file systems) can have the same major and minor numbers. You'd have to
> search all files on local file systems and build a list of all the files
> that match the dev_t.
>
> -greg
>
>
More information about the SunHELP
mailing list