Within the kernelstruct device *foo=dev_get(name) Note that if you sleep the pointer may become invalid. To avoid this you either need a notifier on the device notifier or to use
dev_lock_list() dev_unlock_list() around the code area concerned. You can't get to dev structs from user space (obviously) |