]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Add kstrtou16
authormanu <manu@FreeBSD.org>
Wed, 27 May 2020 11:42:09 +0000 (11:42 +0000)
committermanu <manu@FreeBSD.org>
Wed, 27 May 2020 11:42:09 +0000 (11:42 +0000)
commit7254c6c4256d8680584e9316b6af1a241f493911
treef4c2f3bb24ea883a682796699bb055f3ff43c6b3
parentac39e7b5dc44018a3745c102b123c6905ce4b1d2
linuxkpi: Add kstrtou16

This function convert a char * to a u16.
Simply use strtoul and cast to compare for ERANGE

Sponsored-by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D24996
sys/compat/linuxkpi/common/include/linux/kernel.h