site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi Tim, On May 23, 2008, at 4:08 AM, Tim Schooley wrote: Hi there, That's the right thing to do. --gc ____________________________________________________________________ Garth Cummings gcummings@apple.com Sr. Software Engineer Apple Developer Technical Support <http://developer.apple.com/technicalsupport> WWDC 2008 • June 9-13 • Moscone West • San Francisco, CA <http://developer.apple.com/wwdc/> _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'm currently creating IOBlockStorageDevice objects. I'm curious to know if there is a way to change the actual exposed BSD file name, for example from /dev/disk1 to /dev/monkey1 ? The reason I ask: my application needs to list devices that our driver has created. Normally, I would go down the route of searching IORegistry, looking for kIOBSDName etc. But if a rename of the device file is possible, the whole task could be simplified greatly. Don't do this. There's no way to know how much code out there depends on the /dev/*disk* naming convention. In my experience, "greatly" is a bit of an exaggeration. Walking the I/ O Registry is not hard. Usually a IOServiceGetMatchingServices(YourDriversClassName) is all that's needed unless you want to handle hot-plugging. Which you do if your device is on a hot-pluggable bus. This email sent to site_archiver@lists.apple.com