2007-09-20 15:31:38 +07:00
|
|
|
/*
|
|
|
|
* fs/sysfs/sysfs.h - sysfs internal header file
|
|
|
|
*
|
|
|
|
* Copyright (c) 2001-3 Patrick Mochel
|
|
|
|
* Copyright (c) 2007 SUSE Linux Products GmbH
|
|
|
|
* Copyright (c) 2007 Tejun Heo <teheo@suse.de>
|
|
|
|
*
|
|
|
|
* This file is released under the GPLv2.
|
|
|
|
*/
|
|
|
|
|
2013-11-29 02:54:31 +07:00
|
|
|
#ifndef __SYSFS_INTERNAL_H
|
|
|
|
#define __SYSFS_INTERNAL_H
|
2009-09-10 01:25:37 +07:00
|
|
|
|
2013-11-29 02:54:31 +07:00
|
|
|
#include <linux/sysfs.h>
|
2007-06-14 02:27:24 +07:00
|
|
|
|
2007-09-20 14:05:10 +07:00
|
|
|
/*
|
|
|
|
* mount.c
|
|
|
|
*/
|
2013-12-12 02:11:53 +07:00
|
|
|
extern struct kernfs_node *sysfs_root_kn;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-09-20 14:05:10 +07:00
|
|
|
/*
|
|
|
|
* dir.c
|
|
|
|
*/
|
2013-10-30 21:28:36 +07:00
|
|
|
extern spinlock_t sysfs_symlink_target_lock;
|
2007-09-20 14:05:10 +07:00
|
|
|
|
2013-12-12 02:11:53 +07:00
|
|
|
void sysfs_warn_dup(struct kernfs_node *parent, const char *name);
|
2007-09-20 14:05:10 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* file.c
|
|
|
|
*/
|
2013-12-12 02:11:53 +07:00
|
|
|
int sysfs_add_file(struct kernfs_node *parent,
|
2013-11-29 02:54:23 +07:00
|
|
|
const struct attribute *attr, bool is_bin);
|
2013-12-12 02:11:53 +07:00
|
|
|
int sysfs_add_file_mode_ns(struct kernfs_node *parent,
|
2013-11-29 02:54:23 +07:00
|
|
|
const struct attribute *attr, bool is_bin,
|
2013-09-12 09:29:04 +07:00
|
|
|
umode_t amode, const void *ns);
|
2013-10-02 04:42:07 +07:00
|
|
|
|
2007-09-20 14:05:10 +07:00
|
|
|
/*
|
|
|
|
* symlink.c
|
|
|
|
*/
|
2013-12-12 02:11:53 +07:00
|
|
|
int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target,
|
2013-01-26 03:51:13 +07:00
|
|
|
const char *name);
|
2013-11-29 02:54:31 +07:00
|
|
|
|
|
|
|
#endif /* __SYSFS_INTERNAL_H */
|