blob: bafe178a381f19c98c7736370e5b31c5e8792ed2 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifdef __KERNEL__
2
Jes Sorensen58383af2006-02-06 14:12:43 -08003#include <linux/mutex.h>
Tim Schmielau4e57b682005-10-30 15:03:48 -08004
Linus Torvalds1da177e2005-04-16 15:20:36 -07005typedef struct kobject *kobj_probe_t(dev_t, int *, void *);
6struct kobj_map;
7
8int kobj_map(struct kobj_map *, dev_t, unsigned long, struct module *,
9 kobj_probe_t *, int (*)(dev_t, void *), void *);
10void kobj_unmap(struct kobj_map *, dev_t, unsigned long);
11struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *);
Jes Sorensen58383af2006-02-06 14:12:43 -080012struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
14#endif