diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-05-24 21:42:11 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-24 21:42:11 -0700 |
| commit | 6abc19b443e0df3a63500d184b756878a4692332 (patch) | |
| tree | 08b3e096fbe9b9a82e4f48ac37eb579c108311bc /include/linux/kobj_map.h | |
| parent | 4460bbfdaec0d570c1e50cfa9b4d57ada50bb9db (diff) | |
[PATCH] kobj_map
code responsible for gendisk lookups taken out in drivers/base and
generalized - now it allows to have a range-based mapping from numbers
to kobjects for given struct subsystem.
Diffstat (limited to 'include/linux/kobj_map.h')
| -rw-r--r-- | include/linux/kobj_map.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/kobj_map.h b/include/linux/kobj_map.h new file mode 100644 index 000000000000..404a945c1533 --- /dev/null +++ b/include/linux/kobj_map.h @@ -0,0 +1,12 @@ +#ifdef __KERNEL__ + +typedef struct kobject *kobj_probe_t(dev_t, int *, void *); +struct kobj_map; + +int kobj_map(struct kobj_map *, dev_t, unsigned long, struct module *, + kobj_probe_t *, int (*)(dev_t, void *), void *); +void kobj_unmap(struct kobj_map *, dev_t, unsigned long); +struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *); +struct kobj_map *kobj_map_init(kobj_probe_t *, struct subsystem *); + +#endif |
