]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/kobj_map.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / kobj_map.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
3e21ec22
RD
2/*
3 * kobj_map.h
4 */
5
6#ifndef _KOBJ_MAP_H_
7#define _KOBJ_MAP_H_
8
58383af6 9#include <linux/mutex.h>
4e57b681 10
1da177e4
LT
11typedef 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 *);
58383af6 18struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *);
3e21ec22
RD
19
20#endif /* _KOBJ_MAP_H_ */