linux/drivers/of/kobj.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/of.h>
#include <linux/slab.h>

#include "of_private.h"

/* true when node is initialized */
static int of_node_is_initialized(const struct device_node *node)
{}

/* true when node is attached (i.e. present on sysfs) */
int of_node_is_attached(const struct device_node *node)
{}


#ifndef CONFIG_OF_DYNAMIC
static void of_node_release(struct kobject *kobj)
{
	/* Without CONFIG_OF_DYNAMIC, no nodes gets freed */
}
#endif /* CONFIG_OF_DYNAMIC */

const struct kobj_type of_node_ktype =;

static ssize_t of_node_property_read(struct file *filp, struct kobject *kobj,
				struct bin_attribute *bin_attr, char *buf,
				loff_t offset, size_t count)
{}

/* always return newly allocated name, caller must free after use */
static const char *safe_name(struct kobject *kobj, const char *orig_name)
{}

int __of_add_property_sysfs(struct device_node *np, struct property *pp)
{}

void __of_sysfs_remove_bin_file(struct device_node *np, struct property *prop)
{}

void __of_remove_property_sysfs(struct device_node *np, struct property *prop)
{}

void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
		struct property *oldprop)
{}

int __of_attach_node_sysfs(struct device_node *np)
{}

void __of_detach_node_sysfs(struct device_node *np)
{}