Messages in this thread | | | Date | Thu, 24 Jun 2004 17:25:37 -0400 | From | Jeff Garzik <> | Subject | Re: [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/
| |