Scroll to navigation

SYSFS_BREAK_ACTIVE_P(9) The Filesystem for Exporting K SYSFS_BREAK_ACTIVE_P(9)

NAME

sysfs_break_active_protection - break “active” protection

SYNOPSIS

struct kernfs_node * sysfs_break_active_protection(struct kobject * kobj, const struct attribute * attr);

ARGUMENTS

kobj
The kernel object attr is associated with.

attr

The attribute to break the “active” protection for.

DESCRIPTION

With sysfs, just like kernfs, deletion of an attribute is postponed until all active .show and .store callbacks have finished unless this function is called. Hence this function is useful in methods that implement self deletion.

COPYRIGHT

April 2019 Kernel Hackers Manual 4.9.