Re: partitions

Randy.Dunlap
2002-07-24T16:32:39Z

On Wed, 24 Jul 2002, Mr. James W. Laferriere wrote:

| Hello David , /proc/partitions ? Hth , JimL
|
| On Thu, 25 Jul 2002, David Chow wrote:
| > Hi all,
| > Is there any global variables or list in the kernel space that I can
| > find out which partitions are available in the system? Please give
| > pointer of information.

um, I wouldn't call /proc/partitions "in the kernel space."
However, someone could clone the code that produces /proc/partitions
in kernel space.

in drivers/block/genhd.c::get_partition_list() [at least in 2.4.18/19]

--
~Randy