Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Robert P. J. Day | 3e21ec2 | 2010-03-11 06:32:44 -0500 | [diff] [blame] | 2 | /* |
| 3 | * kobj_map.h |
| 4 | */ |
| 5 | |
| 6 | #ifndef _KOBJ_MAP_H_ |
| 7 | #define _KOBJ_MAP_H_ |
| 8 | |
Jes Sorensen | 58383af | 2006-02-06 14:12:43 -0800 | [diff] [blame] | 9 | #include <linux/mutex.h> |
Tim Schmielau | 4e57b68 | 2005-10-30 15:03:48 -0800 | [diff] [blame] | 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | typedef struct kobject *kobj_probe_t(dev_t, int *, void *); |
| 12 | struct kobj_map; |
| 13 | |
| 14 | int kobj_map(struct kobj_map *, dev_t, unsigned long, struct module *, |
| 15 | kobj_probe_t *, int (*)(dev_t, void *), void *); |
| 16 | void kobj_unmap(struct kobj_map *, dev_t, unsigned long); |
| 17 | struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *); |
Jes Sorensen | 58383af | 2006-02-06 14:12:43 -0800 | [diff] [blame] | 18 | struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *); |
Robert P. J. Day | 3e21ec2 | 2010-03-11 06:32:44 -0500 | [diff] [blame] | 19 | |
| 20 | #endif /* _KOBJ_MAP_H_ */ |