blob: c9919f8b22932cc3cab9efae41d50f6cbbdd6de6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Robert P. J. Day3e21ec22010-03-11 06:32:44 -05002/*
3 * kobj_map.h
4 */
5
6#ifndef _KOBJ_MAP_H_
7#define _KOBJ_MAP_H_
8
Jes Sorensen58383af2006-02-06 14:12:43 -08009#include <linux/mutex.h>
Tim Schmielau4e57b682005-10-30 15:03:48 -080010
Linus Torvalds1da177e2005-04-16 15:20:36 -070011typedef struct kobject *kobj_probe_t(dev_t, int *, void *);
12struct kobj_map;
13
14int kobj_map(struct kobj_map *, dev_t, unsigned long, struct module *,
15 kobj_probe_t *, int (*)(dev_t, void *), void *);
16void kobj_unmap(struct kobj_map *, dev_t, unsigned long);
17struct kobject *kobj_lookup(struct kobj_map *, dev_t, int *);
Jes Sorensen58383af2006-02-06 14:12:43 -080018struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *);
Robert P. J. Day3e21ec22010-03-11 06:32:44 -050019
20#endif /* _KOBJ_MAP_H_ */