linux/drivers/base/map.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  linux/drivers/base/map.c
 *
 * (C) Copyright Al Viro 2002,2003
 *
 * NOTE: data structure needs to be changed.  It works, but for large dev_t
 * it will be too slow.  It is isolated, though, so these changes will be
 * local to that file.
 */

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/kdev_t.h>
#include <linux/kobject.h>
#include <linux/kobj_map.h>

struct kobj_map {};

int kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range,
	     struct module *module, kobj_probe_t *probe,
	     int (*lock)(dev_t, void *), void *data)
{}

void kobj_unmap(struct kobj_map *domain, dev_t dev, unsigned long range)
{}

struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index)
{}

struct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock)
{}