1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * kobj_map.h 3 * kobj_map.h 4 */ 4 */ 5 5 6 #ifndef _KOBJ_MAP_H_ 6 #ifndef _KOBJ_MAP_H_ 7 #define _KOBJ_MAP_H_ 7 #define _KOBJ_MAP_H_ 8 8 9 #include <linux/mutex.h> 9 #include <linux/mutex.h> 10 10 11 typedef struct kobject *kobj_probe_t(dev_t, in 11 typedef struct kobject *kobj_probe_t(dev_t, int *, void *); 12 struct kobj_map; 12 struct kobj_map; 13 13 14 int kobj_map(struct kobj_map *, dev_t, unsigne 14 int kobj_map(struct kobj_map *, dev_t, unsigned long, struct module *, 15 kobj_probe_t *, int (*)(dev_t, vo 15 kobj_probe_t *, int (*)(dev_t, void *), void *); 16 void kobj_unmap(struct kobj_map *, dev_t, unsi 16 void kobj_unmap(struct kobj_map *, dev_t, unsigned long); 17 struct kobject *kobj_lookup(struct kobj_map *, 17 struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *); 18 struct kobj_map *kobj_map_init(kobj_probe_t *, 18 struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *); 19 19 20 #endif /* _KOBJ_MAP_H_ */ 20 #endif /* _KOBJ_MAP_H_ */ 21 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.