lkml.org 
[lkml]   [2004]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] PPC64 iSeries viodasd proc file
On Thu, Jun 24, 2004 at 01:59:37PM -0700, Greg KH wrote:
> Could we determine this in 2.4?

Yes -- by each driver exporting its own procfs node, with its own
private format different from all the others :)


> Anyway, how about this assuming sx8 is a pci driver:
> - look in /sys/bus/pci/drivers/sx8/
> - for every device listed in that directory do:
> - `tree | grep block` or however you want to search the
> tree for the block symlink, find is probably nicer
> here.
> - that gives you the base block device, then go into the
> /sys/block/FOUND_BLOCK_DEVICE to find the individual
> partitions if needed.
>
> Or work backwards if you want to:
> - tally up every /sys/block/*/device symlink, and see if they
> point to a device owned by the sx8 driver.
>
> Does that work for you?

Jeremy?

Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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