经过sysfs_streq 忽略回车符对字符串匹配的影响

平时在经过echo向sysfs的接口写字符串时,在kernel中能够经过sysfs_streq 来判断字符串是否等于固定的值 例以下面的例子. static ssize_t store_smt_control(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { int ct
相关文章
相关标签/搜索