Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 36) sorted by relevance

12

/net/core/
Dnet-sysfs.c36 struct device_attribute *attr, char *buf, in netdev_show() argument
57 struct device_attribute *attr, char *buf) \
59 return netdev_show(dev, attr, buf, format_##field); \
64 static ssize_t netdev_store(struct device *dev, struct device_attribute *attr, in netdev_store() argument
101 static ssize_t show_address(struct device *dev, struct device_attribute *attr, in show_address() argument
115 struct device_attribute *attr, char *buf) in show_broadcast() argument
124 struct device_attribute *attr, char *buf) in show_carrier() argument
134 struct device_attribute *attr, char *buf) in show_dormant() argument
155 struct device_attribute *attr, char *buf) in show_operstate() argument
180 static ssize_t store_mtu(struct device *dev, struct device_attribute *attr, in store_mtu() argument
[all …]
Drtnetlink.c613 struct nlattr *attr; in rtnl_fill_ifinfo() local
664 attr = nla_reserve(skb, IFLA_STATS, in rtnl_fill_ifinfo()
666 if (attr == NULL) in rtnl_fill_ifinfo()
670 copy_rtnl_link_stats(nla_data(attr), stats); in rtnl_fill_ifinfo()
1086 struct nlattr *attr[ops ? ops->maxtype + 1 : 0], **data = NULL; in rtnl_newlink() local
1090 err = nla_parse_nested(attr, ops->maxtype, in rtnl_newlink()
1095 data = attr; in rtnl_newlink()
1314 struct rtattr *attr = (void*)nlh + NLMSG_ALIGN(min_len); in rtnetlink_rcv_msg() local
1316 while (RTA_OK(attr, attrlen)) { in rtnetlink_rcv_msg()
1317 unsigned flavor = attr->rta_type; in rtnetlink_rcv_msg()
[all …]
/net/bridge/
Dbr_sysfs_br.c54 struct device_attribute *attr, char *buf) in show_forward_delay() argument
70 struct device_attribute *attr, in store_forward_delay() argument
78 static ssize_t show_hello_time(struct device *d, struct device_attribute *attr, in show_hello_time() argument
99 struct device_attribute *attr, const char *buf, in store_hello_time() argument
107 static ssize_t show_max_age(struct device *d, struct device_attribute *attr, in show_max_age() argument
123 static ssize_t store_max_age(struct device *d, struct device_attribute *attr, in store_max_age() argument
131 struct device_attribute *attr, char *buf) in show_ageing_time() argument
144 struct device_attribute *attr, in store_ageing_time() argument
153 struct device_attribute *attr, char *buf) in show_stp_state() argument
161 struct device_attribute *attr, const char *buf, in store_stp_state() argument
[all …]
Dbr_sysfs_if.c24 struct attribute attr; member
31 .attr = {.name = __stringify(_name), \
165 #define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr)
169 struct attribute * attr, char * buf) in brport_show() argument
171 struct brport_attribute * brport_attr = to_brport_attr(attr); in brport_show()
178 struct attribute * attr, in brport_store() argument
181 struct brport_attribute * brport_attr = to_brport_attr(attr); in brport_store()
227 err = sysfs_create_file(&p->kobj, &((*a)->attr)); in br_sysfs_addif()
/net/802/
Dgarp.c138 static int garp_attr_cmp(const struct garp_attr *attr, in garp_attr_cmp() argument
141 if (attr->type != type) in garp_attr_cmp()
142 return attr->type - type; in garp_attr_cmp()
143 if (attr->dlen != len) in garp_attr_cmp()
144 return attr->dlen - len; in garp_attr_cmp()
145 return memcmp(attr->data, data, len); in garp_attr_cmp()
152 struct garp_attr *attr; in garp_attr_lookup() local
156 attr = rb_entry(parent, struct garp_attr, node); in garp_attr_lookup()
157 d = garp_attr_cmp(attr, data, len, type); in garp_attr_lookup()
163 return attr; in garp_attr_lookup()
[all …]
/net/bluetooth/
Dhci_sysfs.c28 static ssize_t show_link_type(struct device *dev, struct device_attribute *attr, char *buf) in show_link_type() argument
34 static ssize_t show_link_address(struct device *dev, struct device_attribute *attr, char *buf) in show_link_address() argument
42 static ssize_t show_link_features(struct device *dev, struct device_attribute *attr, char *buf) in show_link_features() argument
61 &link_attr_type.attr,
62 &link_attr_address.attr,
63 &link_attr_features.attr,
189 static ssize_t show_type(struct device *dev, struct device_attribute *attr, char *buf) in show_type() argument
195 static ssize_t show_name(struct device *dev, struct device_attribute *attr, char *buf) in show_name() argument
208 static ssize_t show_class(struct device *dev, struct device_attribute *attr, char *buf) in show_class() argument
215 static ssize_t show_address(struct device *dev, struct device_attribute *attr, char *buf) in show_address() argument
[all …]
/net/ipv4/
Dsysfs_net_ipv4.c28 struct kobj_attribute *attr, char *buf) \
33 struct kobj_attribute *attr, \
57 &tcp_wmem_min_attr.attr,
58 &tcp_wmem_def_attr.attr,
59 &tcp_wmem_max_attr.attr,
60 &tcp_rmem_min_attr.attr,
61 &tcp_rmem_def_attr.attr,
62 &tcp_rmem_max_attr.attr,
Dcipso_ipv4.c895 host_spot = netlbl_secattr_catmap_walk(secattr->attr.mls.cat, in cipso_v4_map_cat_rbm_hton()
978 ret_val = netlbl_secattr_catmap_setbit(secattr->attr.mls.cat, in cipso_v4_map_cat_rbm_ntoh()
1044 cat = netlbl_secattr_catmap_walk(secattr->attr.mls.cat, in cipso_v4_map_cat_enum_hton()
1080 ret_val = netlbl_secattr_catmap_setbit(secattr->attr.mls.cat, in cipso_v4_map_cat_enum_ntoh()
1160 iter = netlbl_secattr_catmap_walk(secattr->attr.mls.cat, in cipso_v4_map_cat_rng_hton()
1169 iter = netlbl_secattr_catmap_walk_rng(secattr->attr.mls.cat, in cipso_v4_map_cat_rng_hton()
1222 ret_val = netlbl_secattr_catmap_setrng(secattr->attr.mls.cat, in cipso_v4_map_cat_rng_ntoh()
1283 secattr->attr.mls.lvl, in cipso_v4_gentag_rbm()
1336 secattr->attr.mls.lvl = level; in cipso_v4_parsetag_rbm()
1340 secattr->attr.mls.cat = in cipso_v4_parsetag_rbm()
[all …]
Dfib_frontend.c513 struct nlattr *attr; in rtm_to_fib_config() local
542 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { in rtm_to_fib_config()
543 switch (nla_type(attr)) { in rtm_to_fib_config()
545 cfg->fc_dst = nla_get_be32(attr); in rtm_to_fib_config()
548 cfg->fc_oif = nla_get_u32(attr); in rtm_to_fib_config()
551 cfg->fc_gw = nla_get_be32(attr); in rtm_to_fib_config()
554 cfg->fc_priority = nla_get_u32(attr); in rtm_to_fib_config()
557 cfg->fc_prefsrc = nla_get_be32(attr); in rtm_to_fib_config()
560 cfg->fc_mx = nla_data(attr); in rtm_to_fib_config()
561 cfg->fc_mx_len = nla_len(attr); in rtm_to_fib_config()
[all …]
Ddevinet.c85 #define IPV4_DEVCONF_DFLT(net, attr) \ argument
86 IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr)
1394 #define DEVINET_SYSCTL_ENTRY(attr, name, mval, proc, sysctl) \ argument
1396 .ctl_name = NET_IPV4_CONF_ ## attr, \
1399 NET_IPV4_CONF_ ## attr - 1, \
1407 #define DEVINET_SYSCTL_RW_ENTRY(attr, name) \ argument
1408 DEVINET_SYSCTL_ENTRY(attr, name, 0644, devinet_conf_proc, \
1411 #define DEVINET_SYSCTL_RO_ENTRY(attr, name) \ argument
1412 DEVINET_SYSCTL_ENTRY(attr, name, 0444, devinet_conf_proc, \
1415 #define DEVINET_SYSCTL_COMPLEX_ENTRY(attr, name, proc, sysctl) \ argument
[all …]
Dinet_diag.c859 struct nlattr *attr; in inet_diag_rcv_msg() local
861 attr = nlmsg_find_attr(nlh, hdrlen, in inet_diag_rcv_msg()
863 if (attr == NULL || in inet_diag_rcv_msg()
864 nla_len(attr) < sizeof(struct inet_diag_bc_op) || in inet_diag_rcv_msg()
865 inet_diag_bc_audit(nla_data(attr), nla_len(attr))) in inet_diag_rcv_msg()
/net/netfilter/
Dnf_conntrack_h323_asn1.c88 unsigned short attr; member
324 if (base && (f->attr & DECODE)) { /* timeToLive */ in decode_int()
354 if ((f->attr & EXT) && get_bit(bs)) { in decode_enum()
428 if (base && (f->attr & DECODE)) { in decode_octstr()
503 base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; in decode_seq()
506 ext = (f->attr & EXT) ? get_bit(bs) : 0; in decode_seq()
515 if (son->attr & STOP) { in decode_seq()
521 if (son->attr & OPT) { /* Optional component */ in decode_seq()
527 if (son->attr & OPEN) { /* Open field */ in decode_seq()
531 if (!base || !(son->attr & DECODE)) { in decode_seq()
[all …]
Dnf_conntrack_netlink.c594 ctnetlink_parse_tuple_ip(struct nlattr *attr, struct nf_conntrack_tuple *tuple) in ctnetlink_parse_tuple_ip() argument
600 nla_parse_nested(tb, CTA_IP_MAX, attr, NULL); in ctnetlink_parse_tuple_ip()
605 ret = nla_validate_nested(attr, CTA_IP_MAX, in ctnetlink_parse_tuple_ip()
621 ctnetlink_parse_tuple_proto(struct nlattr *attr, in ctnetlink_parse_tuple_proto() argument
628 ret = nla_parse_nested(tb, CTA_PROTO_MAX, attr, proto_nla_policy); in ctnetlink_parse_tuple_proto()
639 ret = nla_validate_nested(attr, CTA_PROTO_MAX, in ctnetlink_parse_tuple_proto()
687 ctnetlink_parse_help(struct nlattr *attr, char **helper_name) in ctnetlink_parse_help() argument
691 nla_parse_nested(tb, CTA_HELP_MAX, attr, NULL); in ctnetlink_parse_help()
826 struct nlattr *attr) in ctnetlink_parse_nat_setup() argument
851 return parse_nat_setup(ct, manip, attr); in ctnetlink_parse_nat_setup()
[all …]
Dnfnetlink.c161 struct nlattr *attr = (void *)nlh + NLMSG_ALIGN(min_len); in nfnetlink_rcv_msg() local
164 err = nla_parse(cda, attr_count, attr, attrlen, in nfnetlink_rcv_msg()
Dnf_conntrack_proto_tcp.c1158 struct nf_ct_tcp_flags *attr = in nlattr_to_tcp() local
1160 ct->proto.tcp.seen[0].flags &= ~attr->mask; in nlattr_to_tcp()
1161 ct->proto.tcp.seen[0].flags |= attr->flags & attr->mask; in nlattr_to_tcp()
1165 struct nf_ct_tcp_flags *attr = in nlattr_to_tcp() local
1167 ct->proto.tcp.seen[1].flags &= ~attr->mask; in nlattr_to_tcp()
1168 ct->proto.tcp.seen[1].flags |= attr->flags & attr->mask; in nlattr_to_tcp()
/net/8021q/
Dvlan_netlink.c32 static inline int vlan_validate_qos_map(struct nlattr *attr) in vlan_validate_qos_map() argument
34 if (!attr) in vlan_validate_qos_map()
36 return nla_validate_nested(attr, IFLA_VLAN_QOS_MAX, vlan_map_policy); in vlan_validate_qos_map()
81 struct nlattr *attr; in vlan_changelink() local
89 nla_for_each_nested(attr, data[IFLA_VLAN_INGRESS_QOS], rem) { in vlan_changelink()
90 m = nla_data(attr); in vlan_changelink()
95 nla_for_each_nested(attr, data[IFLA_VLAN_EGRESS_QOS], rem) { in vlan_changelink()
96 m = nla_data(attr); in vlan_changelink()
/net/decnet/
Ddn_fib.c147 __le16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type) in dn_fib_get_attr16() argument
149 while(RTA_OK(attr,attrlen)) { in dn_fib_get_attr16()
150 if (attr->rta_type == type) in dn_fib_get_attr16()
151 return *(__le16*)RTA_DATA(attr); in dn_fib_get_attr16()
152 attr = RTA_NEXT(attr, attrlen); in dn_fib_get_attr16()
301 struct rtattr *attr = RTA_DATA(rta->rta_mx); in dn_fib_create_info() local
303 while(RTA_OK(attr, attrlen)) { in dn_fib_create_info()
304 unsigned flavour = attr->rta_type; in dn_fib_create_info()
308 fi->fib_metrics[flavour-1] = *(unsigned*)RTA_DATA(attr); in dn_fib_create_info()
310 attr = RTA_NEXT(attr, attrlen); in dn_fib_create_info()
[all …]
/net/atm/
Datm_sysfs.c13 struct device_attribute *attr, char *buf) in show_type() argument
20 struct device_attribute *attr, char *buf) in show_address() argument
34 struct device_attribute *attr, char *buf) in show_atmaddress() argument
61 struct device_attribute *attr, char *buf) in show_carrier() argument
73 struct device_attribute *attr, char *buf) in show_link_rate() argument
/net/sched/
Dsch_netem.c307 static int get_dist_table(struct Qdisc *sch, const struct nlattr *attr) in get_dist_table() argument
310 unsigned long n = nla_len(attr)/sizeof(__s16); in get_dist_table()
311 const __s16 *data = nla_data(attr); in get_dist_table()
336 static void get_correlation(struct Qdisc *sch, const struct nlattr *attr) in get_correlation() argument
339 const struct tc_netem_corr *c = nla_data(attr); in get_correlation()
346 static void get_reorder(struct Qdisc *sch, const struct nlattr *attr) in get_reorder() argument
349 const struct tc_netem_reorder *r = nla_data(attr); in get_reorder()
355 static void get_corrupt(struct Qdisc *sch, const struct nlattr *attr) in get_corrupt() argument
358 const struct tc_netem_corrupt *r = nla_data(attr); in get_corrupt()
/net/irda/
Diriap.c372 char *name, char *attr) in iriap_getvaluebyclass_request() argument
397 attr_len = strlen(attr); /* Up to IAS_MAX_ATTRIBNAME = 60 */ in iriap_getvaluebyclass_request()
414 memcpy(frame+3+name_len, attr, attr_len); /* Insert attr */ in iriap_getvaluebyclass_request()
643 char attr[IAS_MAX_ATTRIBNAME + 1]; /* 60 bytes */ in iriap_getvaluebyclass_indication() local
661 memcpy(attr, fp+n, attr_len); n+=attr_len; in iriap_getvaluebyclass_indication()
662 attr[attr_len] = '\0'; in iriap_getvaluebyclass_indication()
664 IRDA_DEBUG(4, "LM-IAS: Looking up %s: %s\n", name, attr); in iriap_getvaluebyclass_indication()
675 attrib = irias_find_attrib(obj, attr); in iriap_getvaluebyclass_indication()
677 IRDA_DEBUG(2, "LM-IAS: Attribute %s not found\n", attr); in iriap_getvaluebyclass_indication()
/net/rfkill/
Drfkill.c367 struct device_attribute *attr, in rfkill_name_show() argument
394 struct device_attribute *attr, in rfkill_type_show() argument
403 struct device_attribute *attr, in rfkill_state_show() argument
413 struct device_attribute *attr, in rfkill_state_store() argument
447 struct device_attribute *attr, in rfkill_claim_show() argument
456 struct device_attribute *attr, in rfkill_claim_store() argument
/net/wimax/
Dop-msg.c371 struct nlattr *attr = info->attrs[WIMAX_GNL_MSG_PIPE_NAME]; in wimax_gnl_doit_msg_from_user() local
372 size_t attr_len = nla_len(attr); in wimax_gnl_doit_msg_from_user()
375 pipe_name = kstrndup(nla_data(attr), attr_len + 1, GFP_KERNEL); in wimax_gnl_doit_msg_from_user()
/net/ipv4/netfilter/
Dnf_nat_core.c597 static int nfnetlink_parse_nat_proto(struct nlattr *attr, in nfnetlink_parse_nat_proto() argument
605 err = nla_parse_nested(tb, CTA_PROTONAT_MAX, attr, protonat_nla_policy); in nfnetlink_parse_nat_proto()
658 struct nlattr *attr) in nfnetlink_parse_nat_setup() argument
662 if (nfnetlink_parse_nat(attr, ct, &range) < 0) in nfnetlink_parse_nat_setup()
673 struct nlattr *attr) in nfnetlink_parse_nat_setup() argument
/net/netlink/
DMakefile5 obj-y := af_netlink.o attr.o genetlink.o
/net/wireless/
Dsysfs.c28 struct device_attribute *attr, \

12