---
name: "sysfs_unbreak_active_protection"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sysfs_unbreak_active_protection"
---

# sysfs\_unbreak\_active\_protection(9)

restore “active” protection

## NAME

sysfs\_unbreak\_active\_protection - restore “active” protection

## SYNOPSIS

**void sysfs\_unbreak\_active\_protection(struct kernfs\_node \*** *kn***);**

## ARGUMENTS

*kn*

Pointer returned by **sysfs\_break\_active\_protection**.

## DESCRIPTION

Undo the effects of **sysfs\_break\_active\_protection**. Since this function calls **kernfs\_put** on the kernfs node that corresponds to the 'attr' argument passed to **sysfs\_break\_active\_protection** that attribute may have been removed between the **sysfs\_break\_active\_protection** and **sysfs\_unbreak\_active\_protection** calls, it is not safe to access *kn* after this function has returned.

## COPYRIGHT
