History log of /src/sys/compat/linuxkpi/common/include/linux/kstrtox.h (Results 1 – 18 of 18)
Revision Date Author Comments
# f86148d2 03-Jan-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

linuxkpi: Correct kstrtobool

Implement the exact same logic as in Linux:

* Accept 'e', 't', 'y', '1', "on" for true.

* Accept 'd', 'f', 'n', '0', "of" for false.

* Disregard any characters beyond

linuxkpi: Correct kstrtobool

Implement the exact same logic as in Linux:

* Accept 'e', 't', 'y', '1', "on" for true.

* Accept 'd', 'f', 'n', '0', "of" for false.

* Disregard any characters beyond that.

* Check that the string is not null, but don't check the result pointer.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D54451

show more ...


# 3542d60f 02-Jan-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

linuxkpi: Don't clobber result on failure

In kstrto*(), don't assign to *res until we know the conversion is
successful, and address issues that may result in warnings if code
that uses <linux/kstrt

linuxkpi: Don't clobber result on failure

In kstrto*(), don't assign to *res until we know the conversion is
successful, and address issues that may result in warnings if code
that uses <linux/kstrtox.h> is compiled at high warning levels.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D54440

show more ...


# cd245b79 22-Dec-2024 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add `kstrtou32()`

[Why]
This is used by the amdgpu DRM driver in Linux 6.7.

Reviewed by: manu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48744


# db42bd1f 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebs

LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45465

show more ...


# d207a2de 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add kstrtoll to linux/kstrtox.h

kstrtoll converts a string to a long long.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: http

LinuxKPI: Add kstrtoll to linux/kstrtox.h

kstrtoll converts a string to a long long.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45455

show more ...


# a97f3a9e 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Move kstrto* functions to linux/kstrtox.h

from linux/kernel.h to match Linux and
allow direct linux/kstrtox.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Revie

LinuxKPI: Move kstrto* functions to linux/kstrtox.h

from linux/kernel.h to match Linux and
allow direct linux/kstrtox.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D45454

show more ...


# f86148d2 03-Jan-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

linuxkpi: Correct kstrtobool

Implement the exact same logic as in Linux:

* Accept 'e', 't', 'y', '1', "on" for true.

* Accept 'd', 'f', 'n', '0', "of" for false.

* Disregard any characters beyond

linuxkpi: Correct kstrtobool

Implement the exact same logic as in Linux:

* Accept 'e', 't', 'y', '1', "on" for true.

* Accept 'd', 'f', 'n', '0', "of" for false.

* Disregard any characters beyond that.

* Check that the string is not null, but don't check the result pointer.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D54451

show more ...


# 3542d60f 02-Jan-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

linuxkpi: Don't clobber result on failure

In kstrto*(), don't assign to *res until we know the conversion is
successful, and address issues that may result in warnings if code
that uses <linux/kstrt

linuxkpi: Don't clobber result on failure

In kstrto*(), don't assign to *res until we know the conversion is
successful, and address issues that may result in warnings if code
that uses <linux/kstrtox.h> is compiled at high warning levels.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D54440

show more ...


# cd245b79 22-Dec-2024 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add `kstrtou32()`

[Why]
This is used by the amdgpu DRM driver in Linux 6.7.

Reviewed by: manu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48744


# db42bd1f 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebs

LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45465

show more ...


# d207a2de 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add kstrtoll to linux/kstrtox.h

kstrtoll converts a string to a long long.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: http

LinuxKPI: Add kstrtoll to linux/kstrtox.h

kstrtoll converts a string to a long long.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45455

show more ...


# a97f3a9e 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Move kstrto* functions to linux/kstrtox.h

from linux/kernel.h to match Linux and
allow direct linux/kstrtox.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Revie

LinuxKPI: Move kstrto* functions to linux/kstrtox.h

from linux/kernel.h to match Linux and
allow direct linux/kstrtox.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D45454

show more ...


# f86148d2 03-Jan-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

linuxkpi: Correct kstrtobool

Implement the exact same logic as in Linux:

* Accept 'e', 't', 'y', '1', "on" for true.

* Accept 'd', 'f', 'n', '0', "of" for false.

* Disregard any characters beyond

linuxkpi: Correct kstrtobool

Implement the exact same logic as in Linux:

* Accept 'e', 't', 'y', '1', "on" for true.

* Accept 'd', 'f', 'n', '0', "of" for false.

* Disregard any characters beyond that.

* Check that the string is not null, but don't check the result pointer.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D54451

show more ...


# 3542d60f 02-Jan-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

linuxkpi: Don't clobber result on failure

In kstrto*(), don't assign to *res until we know the conversion is
successful, and address issues that may result in warnings if code
that uses <linux/kstrt

linuxkpi: Don't clobber result on failure

In kstrto*(), don't assign to *res until we know the conversion is
successful, and address issues that may result in warnings if code
that uses <linux/kstrtox.h> is compiled at high warning levels.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D54440

show more ...


# cd245b79 22-Dec-2024 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add `kstrtou32()`

[Why]
This is used by the amdgpu DRM driver in Linux 6.7.

Reviewed by: manu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48744


# db42bd1f 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebs

LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45465

show more ...


# d207a2de 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add kstrtoll to linux/kstrtox.h

kstrtoll converts a string to a long long.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: http

LinuxKPI: Add kstrtoll to linux/kstrtox.h

kstrtoll converts a string to a long long.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D45455

show more ...


# a97f3a9e 06-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Move kstrto* functions to linux/kstrtox.h

from linux/kernel.h to match Linux and
allow direct linux/kstrtox.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Revie

LinuxKPI: Move kstrto* functions to linux/kstrtox.h

from linux/kernel.h to match Linux and
allow direct linux/kstrtox.h inclusion.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D45454

show more ...