On Mon, Oct 24, 2011 at 9:49 PM, Nicholas A. Bellinger
<[email protected]> wrote:
> On Mon, 2011-10-24 at 21:44 +0200, Bart Van Assche wrote:
>> Also, isn't kstrto*() preferred over strict_strto*() ?
>
> Not AFAIK.

This is what I found in the description of commit 33ee3b2:

    kstrto*: converting strings to integers done (hopefully) right

    1. simple_strto*() do not contain overflow checks and crufty,
       libc way to indicate failure.
    2. strict_strto*() also do not have overflow checks but the name and
       comments pretend they do.
    3. Both families have only "long long" and "long" variants,
       but users want strtou8()
    4. Both "simple" and "strict" prefixes are wrong:
       Simple doesn't exactly say what's so simple, strict should not exist
       because conversion should be strict by default.

    The solution is to use "k" prefix and add convertors for more types.
    Enter
        kstrtoull()
        ...

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to