1 struct bus_type { 2 char * name; 3 4 struct subsystem subsys; 5 struct kset drivers; 6 struct kset devices; 7 8 struct bus_attribute * bus_attrs; 9 struct device_attribute * dev_attrs; 10 struct driver_attribute * drv_attrs; 11 12 int (*match)(struct device * dev, struct ...
structdevice_attribute*attr,char*buf) { structhd_struct*p=dev_to_part(dev); structrequest_queue*q=part_to_disk(p)->queue; structblock_device*bdev=dev_to_bdev(dev); structrequest_queue*q=bdev->bd_disk->queue; structdisk_statsstat; ...
* @id: device instance * @devres_lock: Spinlock to protect the resource of the device. * @devres_head: The resources list of the device. * @knode_class: The node used to add the device to the class list. * @class: The class of the device. * @groups: Optional attribute groups. ...
}staticDEVICE_ATTR(timer_peroid,0644, timer_peroid_show, timer_peroid_store);staticstructattribute *timer_led_attr[] ={&dev_attr_ctrl.attr,&dev_attr_gpio.attr,&dev_attr_timer_peroid.attr, NULL };staticconststructattribute_group attr_group ={ .attrs=timer_led_attr, };staticinttimer_led_p...
include/linux/device.h中: struct class结构体 191struct class { 192 const char *name; 193 struct module *owner; 194 195 struct class_attribute *class_attrs; 196 struct device_attribute *dev_attrs; 197 struct bin_attribute *dev_bin_attrs; ...
ATTRIBUTE_GROUPS(i2c_adapter); struct device_type i2c_adapter_type = { const struct device_type i2c_adapter_type = { .groups = i2c_adapter_groups, .release = i2c_adapter_dev_release, }; 4 changes: 2 additions & 2 deletions 4 include/linux/i2c.h Original file line numberDiff line numb...
(CONFIG_NET_DROP_MONITOR) struct dm_hw_stat_delta __rcu *dm_private; #endif struct device dev; const struct attribute_group *sysfs_groups[4]; const struct attribute_group *sysfs_rx_queue_group; const struct rtnl_link_ops *rtnl_link_ops; /* for setting kernel sock attribute on TCP ...
struct address_space_operations *a_ops; /* methods */ unsigned long flags; /* error bits/gfp mask */ spinlock_t private_lock; /* for use by the address_space */ struct list_head private_list; /* ditto */ void *private_data; /* ditto */ } __attribute__((aligned(sizeof(long)...
Device ID of device containing file. C# 複製 [Android.Runtime.Register("st_dev")] public long StDev { get; set; } Property Value Int64 Attributes RegisterAttribute Remarks Device ID of device containing file. Java documentation for android.system.StructStat.st_dev. Portions of this page ...
int eth_header(struct sk_buff *skb, struct net_device *dev, u16 type, void *daddr, void *saddr, unsigned len) EXPORT_SYMBOL(eth_header); skb : 将要去修改的struct sk_buff; dev : 原网络设备 type: 网络层的协议类型 daddr:目的MAC地址 ...