diff options
author | Jeremy Fitzhardinge <jeremy@xensource.com> | 2007-07-18 03:37:02 +0200 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2007-07-18 17:47:40 +0200 |
commit | 0ab4dc92278a0f3816e486d6350c6652a72e06c8 (patch) | |
tree | 84bc321c94ca86a3b5eafa308c8dba9af85a725c /drivers/sbus | |
parent | add argv_split() (diff) | |
download | linux-0ab4dc92278a0f3816e486d6350c6652a72e06c8.tar.xz linux-0ab4dc92278a0f3816e486d6350c6652a72e06c8.zip |
usermodehelper: split setup from execution
Rather than having hundreds of variations of call_usermodehelper for
various pieces of usermode state which could be set up, split the
info allocation and initialization from the actual process execution.
This means the general pattern becomes:
info = call_usermodehelper_setup(path, argv, envp); /* basic state */
call_usermodehelper_<SET EXTRA STATE>(info, stuff...); /* extra state */
call_usermodehelper_exec(info, wait); /* run process and free info */
This patch introduces wrappers for all the existing calling styles for
call_usermodehelper_*, but folds their implementations into one.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: David Howells <dhowells@redhat.com>
Cc: Bj?rn Steinbrink <B.Steinbrink@gmx.de>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Diffstat (limited to 'drivers/sbus')
0 files changed, 0 insertions, 0 deletions