Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 22:37:52 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        ravi <ravi.nanjundappa@ap.sony.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: procfs in FreeBSD
Message-ID:  <Pine.NEB.3.96L.1040720223305.12507D-100000@fledge.watson.org>
In-Reply-To: <1090234005.4730.50.camel@ravin>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 19 Jul 2004, ravi wrote:

> what is the use of PFS_PROCDEP in the following statement ?
> 
>  dir = pfs_create_dir(root, "pid",
>             procfs_attr, NULL, PFS_PROCDEP);
> 
> And there is no entry under /proc with the name "pid" . 
> 
> Why is it so ? 

I'm not all that familiar with pseudofs, but I believe that the
PFS_PROCDEP flag is a "magic" flag that tells procfs to create
process-specific directories under the directory in question, and the
"pid" is basically place-holder text.  I.e., the presence of the directory
node created above tells procfs to spit out lots of per-process
subdirectories instead.  The details here are a bit hazy to me, but
perhaps this is enough to point you in the right direction?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1040720223305.12507D-100000>