|
发表于 2015-1-6 13:16:12
17431 浏览 1 回复
问的问题都没有人管?那我再问一个
semco_a31.c
static struct attribute *bt_sysfs_entries[] = {
&dev_attr_bt_power.attr,
NULL
};
(dev_attr_bt_power.attr)这是不是没有提供原码?请告知
|
|
|
|
|
|
|
|
发表于 2015-1-7 09:11:32
static ssize_t get_bt_power (struct device *dev, struct device_attribute *attr, char *buf);
static ssize_t set_bt_power (struct device *dev, struct device_attribute *attr, const char *buf, size_t count);
static DEVICE_ATTR(bt_power, S_IRUGO|S_IWUSR, get_bt_power, set_bt_power);
就是函数:get_bt_power和set_bt_power |
|
|
|
|
|
|
登录或注册
扫一扫关注迅为公众号
|