---
name: "call_usermodehelper_setcleanup"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/call_usermodehelper_setcleanup"
---

# call\_usermodehelper\_setcleanup(9)

set a cleanup function

## NAME

call\_usermodehelper\_setcleanup - set a cleanup function

## SYNOPSIS

**void call\_usermodehelper\_setcleanup(struct subprocess\_info \*** *info***, void (\****cleanup***) (char \*\*argv, char \*\*envp));**

## ARGUMENTS

*info*

a subprocess\_info returned by call\_usermodehelper\_setup

*cleanup*

a cleanup function

## DESCRIPTION

The cleanup function is just befor ethe subprocess\_info is about to be freed. This can be used for freeing the argv and envp. The Function must be runnable in either a process context or the context in which call\_usermodehelper\_exec is called.

## COPYRIGHT
