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