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; ...
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 ...
* @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...
struct device_type { const char *name; const struct attribute_group **groups; int (*uevent)(struct device *dev, struct kobj_uevent_env *env); char *(*devnode)(struct device *dev, umode_t *mode, kuid_t *uid, kgid_t *gid); ...
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 ...
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 ...
File information returned by Os#fstat, Os#lstat, and Os#stat. C# 复制 [Android.Runtime.Register("android/system/StructStat", DoNotGenerateAcw=true)] public sealed class StructStat : Java.Lang.Object Inheritance Object Object StructStat Attributes RegisterAttribute Remarks File information return...
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地址 ...