HomeFreeBSD

linuxkpi: Add kstrtou16

Description

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

Details

Provenance
manuAuthored on
Reviewer
hselasky
Differential Revision
D24996: linuxkpi: Add kstrtou16
Parents
rS361550: linuxkpi: Add rcu_swap_protected
Branches
Unknown
Tags
Unknown