[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070727103255.GA16269@hmsreliant.homelinux.net>
Date: Fri, 27 Jul 2007 06:32:55 -0400
From: Neil Horman <nhorman@...driver.com>
To: Jeremy Fitzhardinge <jeremy@...p.org>
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
wwoods@...hat.com
Subject: Re: [PATCH] core_pattern: Add ability for core_pattern to parse arguments when pattern is a pipe
On Thu, Jul 26, 2007 at 03:02:19PM -0700, Jeremy Fitzhardinge wrote:
> Neil Horman wrote:
> > +static void free_argv_array(char **argv)
> > +{
> > + int i;
> > + if (argv != NULL) {
> > + for (i = 0; argv[i] != NULL; i++)
> > + kfree(argv[i]);
> > + kfree(argv);
> > + }
> > +
> > +}
> >
>
> I've helpfully already provided free_argv() in lib/argv_split.c.
>
> > +
> > +/*
> > + * format_corename_argv will inspect the corename string,
> > + * and for every option found after the binary name
> > + * it will remove the option from the string, and place it
> > + * in the argv array, that can then be passed to the
> > + * usermodehelper if core_pattern is a pipe
> > + * Assumes that corename is declared on the stack of the caller
> > + */
> > +static char **format_corename_argv(char *corename)
> > +{
> >
>
> And it looks like this could be adapted to use argv_split() with a bit
> of additional processing.
>
> J
I didn't see these, thanks. I've got the aforementioned misc cleanup patch to
send for this work to Andrew still, I'll roll these changes in with it.
Regards
Neil
--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*nhorman@...driver.com
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists