call_usermodehelper_setcleanup(9)

call_usermodehelper_setcleanup9

Set a cleanup function

Usage

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

Overview

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.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.