This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] Add framework for tunables
- From: Siddhesh Poyarekar <siddhesh at sourceware dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sun, 3 Jul 2016 23:50:51 +0530
- Subject: Re: [PATCH 1/2] Add framework for tunables
- Authentication-results: sourceware.org; auth=none
- References: <1467479562-11357-1-git-send-email-siddhesh at sourceware dot org> <1467479562-11357-2-git-send-email-siddhesh at sourceware dot org> <CAMe9rOp=Bc_7MiLvTGWUe2KO2v843bC30JA1hXNX+y0JHOVhpQ at mail dot gmail dot com> <CAMe9rOqpX=EkFKBSqmaWK_Ubatdvu4t3unQSRQ+o_yhj+gXTmA at mail dot gmail dot com>
On Sun, Jul 03, 2016 at 10:43:36AM -0700, H.J. Lu wrote:
> This should be an option for __tunables_init not to parse the
> string, but instead pass the string to callback directly.
If the tunable type is string then right now it won't do any parsing,
just assign the value in the tunable_val_t. I could modify the
callback to:
void (*callback) (void *)
That way the value is sent back via the callback regardless of the
type. The callback can then cast the value appropriately and use it.
Siddhesh