sysfs_break_active_protection(9)

sysfs_break_active_protection9

Break “active” protection

Usage

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.

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.