/net/batman-adv/ |
D | sysfs.c | 32 struct device *dev = container_of(obj->parent, struct device, kobj); in batadv_kobj_to_netdev() 66 ssize_t batadv_store_##_name(struct kobject *kobj, \ 70 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 77 ssize_t batadv_show_##_name(struct kobject *kobj, \ 80 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 97 ssize_t batadv_store_##_name(struct kobject *kobj, \ 101 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 109 ssize_t batadv_show_##_name(struct kobject *kobj, \ 112 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 233 static ssize_t batadv_show_vis_mode(struct kobject *kobj, in batadv_show_vis_mode() argument [all …]
|
D | sysfs.h | 28 ssize_t (*show)(struct kobject *kobj, struct attribute *attr, 30 ssize_t (*store)(struct kobject *kobj, struct attribute *attr,
|
/net/core/ |
D | net-sysfs.c | 476 #define to_rx_queue(obj) container_of(obj, struct netdev_rx_queue, kobj) 478 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show() argument 482 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_show() 490 static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_store() argument 494 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_attr_store() 689 static void rx_queue_release(struct kobject *kobj) in rx_queue_release() argument 691 struct netdev_rx_queue *queue = to_rx_queue(kobj); in rx_queue_release() 708 memset(kobj, 0, sizeof(*kobj)); in rx_queue_release() 721 struct kobject *kobj = &queue->kobj; in rx_queue_add_kobject() local 724 kobj->kset = net->queues_kset; in rx_queue_add_kobject() [all …]
|
D | dev.c | 5537 kobject_put(&dev->dev.kobj); in netdev_run_todo() 5929 kobject_uevent(&dev->dev.kobj, KOBJ_REMOVE); in dev_change_net_namespace() 5943 kobject_uevent(&dev->dev.kobj, KOBJ_ADD); in dev_change_net_namespace()
|
/net/bridge/ |
D | br_sysfs_if.c | 206 #define to_brport(obj) container_of(obj, struct net_bridge_port, kobj) 208 static ssize_t brport_show(struct kobject * kobj, in brport_show() argument 212 struct net_bridge_port * p = to_brport(kobj); in brport_show() 217 static ssize_t brport_store(struct kobject * kobj, in brport_store() argument 222 struct net_bridge_port * p = to_brport(kobj); in brport_store() 262 err = sysfs_create_link(&p->kobj, &br->dev->dev.kobj, in br_sysfs_addif() 268 err = sysfs_create_file(&p->kobj, &((*a)->attr)); in br_sysfs_addif() 274 return sysfs_create_link(br->ifobj, &p->kobj, p->sysfs_name); in br_sysfs_addif() 289 err = sysfs_rename_link(br->ifobj, &p->kobj, in br_sysfs_renameif()
|
D | br_if.c | 88 static void release_nbp(struct kobject *kobj) in release_nbp() argument 91 = container_of(kobj, struct net_bridge_port, kobj); in release_nbp() 110 kobject_put(&p->kobj); in destroy_nbp() 157 kobject_uevent(&p->kobj, KOBJ_REMOVE); in del_nbp() 158 kobject_del(&p->kobj); in del_nbp() 357 err = kobject_init_and_add(&p->kobj, &brport_ktype, &(dev->dev.kobj), in br_add_if() 403 kobject_uevent(&p->kobj, KOBJ_ADD); in br_add_if() 414 kobject_put(&p->kobj); in br_add_if()
|
D | br_sysfs_br.c | 25 #define to_dev(obj) container_of(obj, struct device, kobj) 770 static ssize_t brforward_read(struct file *filp, struct kobject *kobj, in brforward_read() argument 774 struct device *dev = to_dev(kobj); in brforward_read() 811 struct kobject *brobj = &dev->dev.kobj; in br_sysfs_addbr() 837 sysfs_remove_bin_file(&dev->dev.kobj, &bridge_forward); in br_sysfs_addbr() 839 sysfs_remove_group(&dev->dev.kobj, &bridge_group); in br_sysfs_addbr() 847 struct kobject *kobj = &dev->dev.kobj; in br_sysfs_delbr() local 851 sysfs_remove_bin_file(kobj, &bridge_forward); in br_sysfs_delbr() 852 sysfs_remove_group(kobj, &bridge_group); in br_sysfs_delbr()
|
D | br_private.h | 151 struct kobject kobj; member
|
/net/ipv4/ |
D | sysfs_net_ipv4.c | 27 static ssize_t _name##_show(struct kobject *kobj, \ 32 static ssize_t _name##_store(struct kobject *kobj, \
|
/net/netfilter/ |
D | xt_IDLETIMER.c | 55 ssize_t (*show)(struct kobject *kobj, 64 struct kobject *kobj; member 186 static ssize_t idletimer_tg_show(struct kobject *kobj, struct attribute *attr, in idletimer_tg_show() argument 506 idletimer_tg_kobj = &idletimer_tg_device->kobj; in idletimer_tg_init()
|
/net/9p/ |
D | trans_virtio.c | 563 err = sysfs_create_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); in p9_virtio_probe() 656 sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); in p9_virtio_remove()
|
/net/wireless/ |
D | core.c | 988 if (sysfs_create_link(&dev->dev.kobj, &rdev->wiphy.dev.kobj, in cfg80211_netdev_notifier_call() 1104 sysfs_remove_link(&dev->dev.kobj, "phy80211"); in cfg80211_netdev_notifier_call()
|
D | reg.c | 457 return kobject_uevent(®_pdev->dev.kobj, KOBJ_CHANGE); in call_crda()
|
/net/rfkill/ |
D | core.c | 232 kobject_uevent(&rfkill->dev.kobj, KOBJ_CHANGE); in rfkill_event()
|