include/linux/kobject_ns.h

Source file repositories/reference/linux-study-clean/include/linux/kobject_ns.h

File Facts

System
Linux kernel
Corpus path
include/linux/kobject_ns.h
Extension
.h
Size
1922 bytes
Lines
59
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct kobj_ns_type_operations {
	enum kobj_ns_type type;
	bool (*current_may_mount)(void);
	struct ns_common *(*grab_current_ns)(void);
	const struct ns_common *(*netlink_ns)(struct sock *sk);
	const struct ns_common *(*initial_ns)(void);
	void (*drop_ns)(struct ns_common *);
};

int kobj_ns_type_register(const struct kobj_ns_type_operations *ops);
int kobj_ns_type_registered(enum kobj_ns_type type);
const struct kobj_ns_type_operations *kobj_child_ns_ops(const struct kobject *parent);
const struct kobj_ns_type_operations *kobj_ns_ops(const struct kobject *kobj);

bool kobj_ns_current_may_mount(enum kobj_ns_type type);
struct ns_common *kobj_ns_grab_current(enum kobj_ns_type type);
void kobj_ns_drop(enum kobj_ns_type type, struct ns_common *ns);

#endif /* _LINUX_KOBJECT_NS_H */

Annotation

Implementation Notes