|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [patch 03/44] usermodehelper: split setup from execution
To: |
Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx> |
Subject: |
Re: [Xen-devel] [patch 03/44] usermodehelper: split setup from execution |
From: |
Rusty Russell <rusty@xxxxxxxxxxxxxxx> |
Date: |
Tue, 17 Jul 2007 10:41:10 +1000 |
Cc: |
Randy Dunlap <randy.dunlap@xxxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Andi Kleen <ak@xxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>, David Howells <dhowells@xxxxxxxxxx>, Bj?rn Steinbrink <B.Steinbrink@xxxxxx> |
Delivery-date: |
Mon, 16 Jul 2007 17:39:40 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<20070716232912.409821000@xxxxxxxxxxxxx>> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20070716231536.937393000@xxxxxxxxxxxxx> > <20070716232912.409821000@xxxxxxxxxxxxx>> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Mon, 2007-07-16 at 16:15 -0700, Jeremy Fitzhardinge wrote:
> plain text document attachment (usermodehelper-split-init.patch)
> 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 */
The patch seems fine, but the names are awkward. They've always been
awkward (it's *userspace* helper, not *usermode* helper), but this just
shines a bright light on them.
So how about:
call_usermodehelper_setup -> create_userspace_helper
call_usermodehelper_<SET_EXTRA_STATE> -> userspace_helper_...
call_usermodehelper_exec -> run_userspace_helper
I can do that as a separate patch if you prefer (but it'd be nice to
have it in the same merge window so the interface only churns once).
Rusty.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [patch 00/44] Xen guest support for 2.6.23, Jeremy Fitzhardinge
- [Xen-devel] [patch 04/44] Add common orderly_poweroff(), Jeremy Fitzhardinge
- [Xen-devel] [patch 01/44] add kstrndup, Jeremy Fitzhardinge
- [Xen-devel] [patch 02/44] add argv_split(), Jeremy Fitzhardinge
- [Xen-devel] [patch 03/44] usermodehelper: split setup from execution, Jeremy Fitzhardinge
- Re: [Xen-devel] [patch 03/44] usermodehelper: split setup from execution,
Rusty Russell <=
- [Xen-devel] [patch 10/44] paravirt: unstatic leave_mm, Jeremy Fitzhardinge
- [Xen-devel] [patch 12/44] paravirt: make siblingmap functions visible, Jeremy Fitzhardinge
- [Xen-devel] [patch 08/44] paravirt: add a hook for once the allocator is ready, Jeremy Fitzhardinge
- [Xen-devel] [patch 05/44] usermodehelper: Tidy up waiting, Jeremy Fitzhardinge
- [Xen-devel] [patch 06/44] use elfnote.h to generate vsyscall notes., Jeremy Fitzhardinge
- [Xen-devel] [patch 13/44] paravirt: export __supported_pte_mask, Jeremy Fitzhardinge
- [Xen-devel] [patch 17/44] Add nosegneg capability to the vsyscall page notes, Jeremy Fitzhardinge
|
|
|
|
|