Linux内核使用的字符串转整形函数kstrtouint
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
kstrtouint函数定义在文件kstrtox.c中,原形如下:
int kstrtouint(const char *s, unsigned int base, unsigned int *res)
s是输入字符串,base可以是10(10进制)或16(16进制),或者是0自动识别,res存放转换后的整形值.
当没有错误时返回值是0;
devm_ioremap_resource
of_property_read_u32(pdev->dev.of_node,"reg-no",®No);




A beautiful web dashboard for Linux
最近提交(Master分支:28 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)