/freebsd/tools/tools/locale/tools/ |
H A D | charmaps.pm | 58 my @attrs = @_; 59 my %attrs = (); 62 while ($#attrs >= 0) { 63 $attrs{$attrs[0]} = $attrs[1]; 64 shift(@attrs); 65 shift(@attrs); 73 my $name = $attrs{name}; 74 my $countries = $attrs{countries}; 75 my $encoding = $attrs{encoding}; 76 my $family = $attrs{family}; [all …]
|
/freebsd/sys/netlink/route/ |
H A D | neigh.c | 344 struct nl_parsed_neigh *attrs = (struct nl_parsed_neigh *)_attrs; in post_p_neigh() local 346 set_scope6(attrs->nda_dst, attrs->nda_ifp); in post_p_neigh() 365 struct nl_parsed_neigh attrs = {}; in rtnl_handle_newneigh() local 366 error = nl_parse_nlmsg(hdr, &ndmsg_parser, npt, &attrs); in rtnl_handle_newneigh() 370 if (attrs.nda_ifp == NULL || attrs.nda_dst == NULL || attrs.nda_lladdr == NULL) { in rtnl_handle_newneigh() 371 if (attrs.nda_ifp == NULL) in rtnl_handle_newneigh() 373 if (attrs.nda_dst == NULL) in rtnl_handle_newneigh() 375 if (attrs.nda_lladdr == NULL) in rtnl_handle_newneigh() 380 if (attrs.nda_dst->sa_family != attrs.ndm_family) { in rtnl_handle_newneigh() 383 attrs.nda_dst->sa_family, attrs.ndm_family); in rtnl_handle_newneigh() [all …]
|
H A D | rt.c | 421 struct rta_mpath_nh *attrs = (struct rta_mpath_nh *)_attrs; in post_p_rtnh() local 423 set_scope6(attrs->gw, attrs->ifp); in post_p_rtnh() 533 struct nl_parsed_route *attrs = (struct nl_parsed_route *)_attrs; 535 set_scope6(attrs->rta_dst, attrs->rta_oif); 536 set_scope6(attrs->rta_gw, attrs->rta_oif); 622 handle_rtm_getroute(struct nlpcb *nlp, struct nl_parsed_route *attrs, in handle_rtm_getroute() 629 uint32_t fibnum = attrs in handle_rtm_getroute() 521 struct nl_parsed_route *attrs = (struct nl_parsed_route *)_attrs; post_p_rtmsg() local 610 handle_rtm_getroute(struct nlpcb * nlp,struct nl_parsed_route * attrs,struct nlmsghdr * hdr,struct nl_pstate * npt) handle_rtm_getroute() argument 770 get_pxflag(const struct nl_parsed_route * attrs) get_pxflag() argument 806 create_nexthop_one(struct nl_parsed_route * attrs,struct rta_mpath_nh * mpnh,struct nl_pstate * npt,struct nhop_object ** pnh) create_nexthop_one() argument 837 create_nexthop_from_attrs(struct nl_parsed_route * attrs,struct nl_pstate * npt,int * perror) create_nexthop_from_attrs() argument 932 struct nl_parsed_route attrs = {}; rtnl_handle_newroute() local 981 struct nl_parsed_route *attrs = (struct nl_parsed_route *)_data; path_match_func() local 999 struct nl_parsed_route attrs = {}; rtnl_handle_delroute() local 1027 struct nl_parsed_route attrs = {}; rtnl_handle_getroute() local [all...] |
H A D | iface.c | 421 struct nl_parsed_link *attrs = (struct nl_parsed_link *)_arg; in match_iface() local 423 if (attrs->ifi_index != 0 && attrs->ifi_index != if_getindex(ifp)) in match_iface() 425 if (attrs->ifi_type != 0 && attrs->ifi_index != if_gettype(ifp)) in match_iface() 427 if (attrs->ifla_ifname != NULL && strcmp(attrs->ifla_ifname, if_name(ifp))) in match_iface() 458 struct nl_parsed_link attrs = {}; in rtnl_handle_getlink() local 459 error = nl_parse_nlmsg(hdr, &ifmsg_parser, npt, &attrs); in rtnl_handle_getlink() 473 if ((attrs.ifi_index != 0) || (attrs.ifla_ifname != NULL)) { in rtnl_handle_getlink() 474 if (attrs.ifi_index != 0) { in rtnl_handle_getlink() 476 attrs.ifi_index); in rtnl_handle_getlink() 478 ifp = ifnet_byindex_ref(attrs.ifi_index); in rtnl_handle_getlink() [all …]
|
H A D | nexthop.c | 738 struct nl_parsed_nhop *attrs = (struct nl_parsed_nhop *)_attrs; in post_p_nh() local 740 set_scope6(attrs->nha_gw, attrs->nha_oif); in post_p_nh() 752 newnhg(struct unhop_ctl *ctl, struct nl_parsed_nhop *attrs, struct user_nhop *unhop) in newnhg() argument 754 struct nexthop_grp *grp = NLA_DATA(attrs->nha_group); in newnhg() 755 int count = NLA_DATA_LEN(attrs->nha_group) / sizeof(*grp); in newnhg() 819 newnhop(struct nl_parsed_nhop *attrs, struct user_nhop *unhop, struct nl_pstate *npt) in newnhop() argument 825 if (!attrs->nha_blackhole) { in newnhop() 826 if (attrs->nha_gw == NULL) { in newnhop() 830 if (attrs->nha_oif == NULL) { in newnhop() 835 ifa = ifaof_ifpforaddr(attrs->nha_gw, attrs->nha_oif); in newnhop() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_std_types_device.c | 18 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 20 struct uverbs_api *uapi = attrs->ufile->device->uapi; in UVERBS_HANDLER() 25 rc = uverbs_get_const(&cmd, attrs, UVERBS_ATTR_WRITE_CMD); in UVERBS_HANDLER() 33 uverbs_fill_udata(attrs, &attrs->ucore, UVERBS_ATTR_CORE_IN, in UVERBS_HANDLER() 36 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_HANDLER() 37 attrs->ucore.outlen < method_elm->resp_size) in UVERBS_HANDLER() 40 return method_elm->handler(attrs); in UVERBS_HANDLER() 58 struct uverbs_attr_bundle *attrs, in gather_objects_handle() argument 70 handles = uverbs_zalloc(attrs, out_len); in gather_objects_handle() 94 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() [all …]
|
H A D | ib_uverbs_cmd.c | 65 static int uverbs_response(struct uverbs_attr_bundle *attrs, const void *resp, in uverbs_response() argument 70 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_CORE_OUT)) in uverbs_response() 72 attrs, UVERBS_ATTR_CORE_OUT, resp, resp_len); in uverbs_response() 74 if (copy_to_user(attrs->ucore.outbuf, resp, in uverbs_response() 75 min(attrs->ucore.outlen, resp_len))) in uverbs_response() 78 if (resp_len < attrs->ucore.outlen) { in uverbs_response() 83 ret = clear_user(attrs->ucore.outbuf + resp_len, in uverbs_response() 84 attrs->ucore.outlen - resp_len); in uverbs_response() 98 static int uverbs_request(struct uverbs_attr_bundle *attrs, void *req, in uverbs_request() argument 101 if (copy_from_user(req, attrs->ucore.inbuf, in uverbs_request() [all …]
|
H A D | ib_rdma_core.c | 124 struct uverbs_attr_bundle *attrs) in uverbs_destroy_uobject() argument 126 struct ib_uverbs_file *ufile = attrs->ufile; in uverbs_destroy_uobject() 139 attrs); in uverbs_destroy_uobject() 194 int uobj_destroy(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs) in uobj_destroy() argument 196 struct ib_uverbs_file *ufile = attrs->ufile; in uobj_destroy() 205 ret = uverbs_destroy_uobject(uobj, RDMA_REMOVE_DESTROY, attrs); in uobj_destroy() 222 u32 id, struct uverbs_attr_bundle *attrs) in __uobj_get_destroy() argument 227 uobj = rdma_lookup_get_uobject(obj, attrs->ufile, id, in __uobj_get_destroy() 228 UVERBS_LOOKUP_DESTROY, attrs); in __uobj_get_destroy() 232 ret = uobj_destroy(uobj, attrs); in __uobj_get_destroy() 246 __uobj_perform_destroy(const struct uverbs_api_object * obj,u32 id,struct uverbs_attr_bundle * attrs) __uobj_perform_destroy() argument 259 alloc_uobj(struct uverbs_attr_bundle * attrs,const struct uverbs_api_object * obj) alloc_uobj() argument 377 rdma_lookup_get_uobject(const struct uverbs_api_object * obj,struct ib_uverbs_file * ufile,s64 id,enum rdma_lookup_mode mode,struct uverbs_attr_bundle * attrs) rdma_lookup_get_uobject() argument 427 alloc_begin_idr_uobject(const struct uverbs_api_object * obj,struct uverbs_attr_bundle * attrs) alloc_begin_idr_uobject() argument 456 alloc_begin_fd_uobject(const struct uverbs_api_object * obj,struct uverbs_attr_bundle * attrs) alloc_begin_fd_uobject() argument 494 rdma_alloc_begin_uobject(const struct uverbs_api_object * obj,struct uverbs_attr_bundle * attrs) rdma_alloc_begin_uobject() argument 525 destroy_hw_idr_uobject(struct ib_uobject * uobj,enum rdma_remove_reason why,struct uverbs_attr_bundle * attrs) destroy_hw_idr_uobject() argument 563 destroy_hw_fd_uobject(struct ib_uobject * uobj,enum rdma_remove_reason why,struct uverbs_attr_bundle * attrs) destroy_hw_fd_uobject() argument 620 rdma_alloc_commit_uobject(struct ib_uobject * uobj,struct uverbs_attr_bundle * attrs) rdma_alloc_commit_uobject() argument 645 rdma_alloc_abort_uobject(struct ib_uobject * uobj,struct uverbs_attr_bundle * attrs) rdma_alloc_abort_uobject() argument 753 struct uverbs_attr_bundle attrs = { uverbs_uobject_fd_release() local 811 struct uverbs_attr_bundle attrs = { .ufile = ufile }; __uverbs_cleanup_ufile() local 889 uverbs_get_uobject_from_file(u16 object_id,enum uverbs_obj_access access,s64 id,struct uverbs_attr_bundle * attrs) uverbs_get_uobject_from_file() argument 915 uverbs_finalize_object(struct ib_uobject * uobj,enum uverbs_obj_access access,bool commit,struct uverbs_attr_bundle * attrs) uverbs_finalize_object() argument [all...] |
H A D | ib_uverbs_std_types_mr.c | 39 struct uverbs_attr_bundle *attrs) in uverbs_free_mr() argument 42 &attrs->driver_udata); in uverbs_free_mr() 46 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 49 uverbs_attr_get_obj(attrs, UVERBS_ATTR_ADVISE_MR_PD_HANDLE); in UVERBS_HANDLER() 61 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE); in UVERBS_HANDLER() 65 ret = uverbs_get_flags32(&flags, attrs, UVERBS_ATTR_ADVISE_MR_FLAGS, in UVERBS_HANDLER() 71 attrs, UVERBS_ATTR_ADVISE_MR_SGE_LIST, sizeof(struct ib_sge)); in UVERBS_HANDLER() 75 sg_list = uverbs_attr_get_alloced_ptr(attrs, in UVERBS_HANDLER() 78 attrs); in UVERBS_HANDLER() 82 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() [all …]
|
H A D | ib_uverbs_std_types_flow_action.c | 39 struct uverbs_attr_bundle *attrs) in uverbs_free_flow_action() argument 51 static u64 esp_flags_uverbs_to_verbs(struct uverbs_attr_bundle *attrs, in esp_flags_uverbs_to_verbs() argument 56 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_FLOW_ACTION_ESP_ESN)) in esp_flags_uverbs_to_verbs() 59 if (is_modify && uverbs_attr_is_valid(attrs, in esp_flags_uverbs_to_verbs() 194 struct uverbs_attr_bundle *attrs) in flow_action_esp_get_encap() argument 199 ret = uverbs_copy_from(&uverbs_encap, attrs, in flow_action_esp_get_encap() 228 struct uverbs_attr_bundle *attrs, in parse_flow_action_esp() argument 236 ret = uverbs_copy_from(&esp_attr->hdr.esn, attrs, in parse_flow_action_esp() 244 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_FLOW_ACTION_ESP_ATTRS)) { in parse_flow_action_esp() 245 ret = uverbs_copy_from_or_zero(&uverbs_esp, attrs, in parse_flow_action_esp() [all …]
|
H A D | ib_uverbs_std_types_cq.c | 39 struct uverbs_attr_bundle *attrs) in uverbs_free_cq() argument 47 ret = ib_destroy_cq_user(cq, &attrs->driver_udata); in uverbs_free_cq() 61 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 64 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_CQ_HANDLE), in UVERBS_HANDLER() 66 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER() 77 ret = uverbs_copy_from(&attr.comp_vector, attrs, in UVERBS_HANDLER() 80 ret = uverbs_copy_from(&attr.cqe, attrs, in UVERBS_HANDLER() 83 ret = uverbs_copy_from(&user_handle, attrs, in UVERBS_HANDLER() 88 ret = uverbs_get_flags32(&attr.flags, attrs, in UVERBS_HANDLER() 95 ev_file_uobj = uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_CQ_COMP_CHANNEL); in UVERBS_HANDLER() [all …]
|
H A D | ib_uverbs_std_types_counters.c | 42 struct uverbs_attr_bundle *attrs) in uverbs_free_counters() argument 55 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 58 attrs, UVERBS_ATTR_CREATE_COUNTERS_HANDLE); in UVERBS_HANDLER() 59 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER() 71 counters = ib_dev->create_counters(ib_dev, attrs); in UVERBS_HANDLER() 89 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 94 uverbs_attr_get_obj(attrs, UVERBS_ATTR_READ_COUNTERS_HANDLE); in UVERBS_HANDLER() 103 ret = uverbs_get_flags32(&read_attr.flags, attrs, in UVERBS_HANDLER() 109 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF); in UVERBS_HANDLER() 112 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER() [all …]
|
H A D | ib_uverbs_std_types.c | 42 struct uverbs_attr_bundle *attrs) in uverbs_free_ah() argument 46 &attrs->driver_udata); in uverbs_free_ah() 51 struct uverbs_attr_bundle *attrs) in uverbs_free_flow() argument 71 struct uverbs_attr_bundle *attrs) in uverbs_free_mw() argument 78 struct uverbs_attr_bundle *attrs) in uverbs_free_qp() argument 99 ret = ib_destroy_qp_user(qp, &attrs->driver_udata); in uverbs_free_qp() 112 struct uverbs_attr_bundle *attrs) in uverbs_free_rwq_ind_tbl() argument 128 struct uverbs_attr_bundle *attrs) in uverbs_free_wq() argument 135 ret = ib_destroy_wq(wq, &attrs->driver_udata); in uverbs_free_wq() 145 struct uverbs_attr_bundle *attrs) in uverbs_free_srq() argument [all …]
|
H A D | ib_uverbs_std_types_dm.c | 39 struct uverbs_attr_bundle *attrs) in uverbs_free_dm() argument 48 return dm->device->dealloc_dm(dm, attrs); in uverbs_free_dm() 52 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 56 uverbs_attr_get(attrs, UVERBS_ATTR_ALLOC_DM_HANDLE) in UVERBS_HANDLER() 58 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER() 65 ret = uverbs_copy_from(&attr.length, attrs, in UVERBS_HANDLER() 70 ret = uverbs_copy_from(&attr.alignment, attrs, in UVERBS_HANDLER() 75 dm = ib_dev->alloc_dm(ib_dev, attrs->context, &attr, attrs); in UVERBS_HANDLER()
|
H A D | ib_sysfs.c | 654 .attrs = pma_attrs 659 .attrs = pma_attrs_ext 664 .attrs = pma_attrs_noietf 673 if (p->gid_group.attrs) { in ib_port_release() 674 for (i = 0; (a = p->gid_group.attrs[i]); ++i) in ib_port_release() 677 kfree(p->gid_group.attrs); in ib_port_release() 680 if (p->pkey_group.attrs) { in ib_port_release() 681 for (i = 0; (a = p->pkey_group.attrs[i]); ++i) in ib_port_release() 684 kfree(p->pkey_group.attrs); in ib_port_release() 697 if (g->ndev.attrs) { in ib_port_gid_attr_release() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_accel/ |
H A D | mlx5_ipsec.c | 89 if (sa_entry->attrs.drop) in mlx5e_ipsec_handle_counters() 92 if (other_sa_entry == NULL || other_sa_entry->attrs.drop) in mlx5e_ipsec_handle_counters() 154 struct mlx5_accel_esp_xfrm_attrs *attrs, in mlx5e_ipsec_build_accel_xfrm_attrs() argument 159 struct aes_gcm_keymat *aes_gcm = &attrs->aes_gcm; in mlx5e_ipsec_build_accel_xfrm_attrs() 164 memset(attrs, 0, sizeof(*attrs)); in mlx5e_ipsec_build_accel_xfrm_attrs() 179 attrs->authsize = 8 / 4; /* in dwords */ in mlx5e_ipsec_build_accel_xfrm_attrs() 182 attrs->authsize = 12 / 4; /* in dwords */ in mlx5e_ipsec_build_accel_xfrm_attrs() 185 attrs->authsize = 16 / 4; /* in dwords */ in mlx5e_ipsec_build_accel_xfrm_attrs() 193 attrs->dir = dir; in mlx5e_ipsec_build_accel_xfrm_attrs() 195 attrs->spi = ntohl(savp->spi); in mlx5e_ipsec_build_accel_xfrm_attrs() [all …]
|
/freebsd/contrib/wpa/src/radius/ |
H A D | radius_das.c | 59 struct radius_das_attrs attrs; in radius_das_disconnect() local 76 os_memset(&attrs, 0, sizeof(attrs)); in radius_das_disconnect() 86 attrs.nas_ip_addr = buf; in radius_das_disconnect() 98 attrs.nas_ipv6_addr = buf; in radius_das_disconnect() 104 attrs.nas_identifier = buf; in radius_das_disconnect() 105 attrs.nas_identifier_len = len; in radius_das_disconnect() 120 attrs.sta_addr = sta_addr; in radius_das_disconnect() 125 attrs.user_name = buf; in radius_das_disconnect() 126 attrs.user_name_len = len; in radius_das_disconnect() 131 attrs.acct_session_id = buf; in radius_das_disconnect() [all …]
|
/freebsd/sys/tests/ |
H A D | ktest_example.c | 86 struct test1_attrs *attrs = npt_alloc(ctx->npt, sizeof(*attrs)); in test_with_params_parser() local 88 ctx->arg = attrs; in test_with_params_parser() 89 if (attrs != NULL) in test_with_params_parser() 90 return (nl_parse_nested(nla, &test1_parser, ctx->npt, attrs)); in test_with_params_parser() 97 struct test1_attrs *attrs = ctx->arg; in test_with_params() local 99 if (attrs->text != NULL) in test_with_params() 100 KTEST_LOG(ctx, "Get '%s'", attrs->text); in test_with_params() 101 KTEST_LOG(ctx, "%u + %u = %u", attrs->arg1, attrs->arg2, in test_with_params() 102 attrs->arg1 + attrs->arg2); in test_with_params()
|
H A D | ktest.c | 117 struct ktest_module *mod, struct nl_ktest_parsed *attrs) in dump_mod_tests() argument 121 if (attrs->test_name != NULL && strcmp(attrs->test_name, test_info->name)) in dump_mod_tests() 134 struct nl_ktest_parsed attrs = { }; in dump_tests() local 138 error = nl_parse_nlmsg(hdr, &ktest_parser, npt, &attrs); in dump_tests() 146 if (attrs.mod_name && strcmp(attrs.mod_name, mod->info->name)) in dump_tests() 148 error = dump_mod_tests(hdr, npt, mod, &attrs); in dump_tests() 165 struct nl_ktest_parsed attrs = { }; in run_test() local 169 error = nl_parse_nlmsg(hdr, &ktest_parser, npt, &attrs); in run_test() 173 if (attrs.mod_name == NULL) { in run_test() 178 if (attrs.test_name == NULL) { in run_test() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFASTParserClang.cpp | 465 ParsedDWARFTypeAttributes attrs(die); in ParseTypeFromDWARF() local 468 if (DWARFDIE signature_die = attrs.signature.Reference()) { in ParseTypeFromDWARF() 493 type_sp = ParseTypeModifier(sc, die, attrs); in ParseTypeFromDWARF() 498 type_sp = ParseStructureLikeDIE(sc, die, attrs); in ParseTypeFromDWARF() 501 type_sp = ParseEnum(sc, die, attrs); in ParseTypeFromDWARF() 506 type_sp = ParseSubroutine(die, attrs); in ParseTypeFromDWARF() 509 type_sp = ParseArrayType(die, attrs); in ParseTypeFromDWARF() 512 type_sp = ParsePointerToMemberType(die, attrs); in ParseTypeFromDWARF() 597 ParsedDWARFTypeAttributes &attrs) { in ParseTypeModifier() argument 614 attrs.name.GetCString()); in ParseTypeModifier() [all …]
|
/freebsd/crypto/openssl/Configurations/ |
H A D | gentemplate.pm | 60 unless defined $opts{attrs}->{skip}; 213 my %attrs = %{$self->{info}->{attributes}->{generate}->{$src} // {}}; 225 attrs => { %attrs }, 335 my %attrs = %{$self->{info}->{attributes}->{libraries}->{$lib} // {}}; 377 join(",", map { "\n $_ = $attrs{$_}" } sort keys %attrs), "\n" 378 if %attrs && $debug_rules; 390 attrs => { %attrs }, 400 $self->doobj($_, $lib, intent => "shlib", attrs => { %attrs }); 430 join(",", map { "\n $_ = $attrs{$_}" } sort keys %attrs), "\n" 431 if %attrs && $debug_rules; [all …]
|
/freebsd/sys/netlink/ |
H A D | ktest_netlink_message_writer.c | 60 struct test_nlbuf_attrs *attrs = npt_alloc(ctx->npt, sizeof(*attrs)); in test_nlbuf_parser() local 62 ctx->arg = attrs; in test_nlbuf_parser() 63 if (attrs != NULL) in test_nlbuf_parser() 64 return (nl_parse_nested(nla, &nlbuf_w_parser, ctx->npt, attrs)); in test_nlbuf_parser() 71 struct test_nlbuf_attrs *attrs = ctx->arg; in test_nlbuf_writer_allocation() local 76 ret = nlmsg_get_buf_wrapper(&nw, attrs->size, attrs->waitok); in test_nlbuf_writer_allocation() 81 KTEST_LOG(ctx, "requested %u, allocated %d", attrs->size, alloc_len); in test_nlbuf_writer_allocation() 93 if (alloc_len < attrs->expected_avail) { in test_nlbuf_writer_allocation() 95 alloc_len, attrs->expected_avail); in test_nlbuf_writer_allocation()
|
H A D | netlink_snl_generic.h | 122 struct _getfamily_attrs *attrs) in _snl_get_genl_family_info() argument 127 memset(attrs, 0, sizeof(*attrs)); in _snl_get_genl_family_info() 137 if (snl_parse_nlmsg(ss, hdr, &_genl_ctrl_getfam_parser, attrs)) in _snl_get_genl_family_info() 147 struct _getfamily_attrs attrs = {}; in snl_get_genl_family() local 150 &attrs))) in snl_get_genl_family() 152 return (attrs.family_id); in snl_get_genl_family() 159 struct _getfamily_attrs attrs = {}; in snl_get_genl_mcast_group() local 162 &attrs))) in snl_get_genl_mcast_group() 164 if (attrs.family_id == 0) in snl_get_genl_mcast_group() 167 *family_id = attrs.family_id; in snl_get_genl_mcast_group() [all …]
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_nl.c | 240 handle_dumpstates(struct nlpcb *nlp, struct nl_parsed_state *attrs, in handle_dumpstates() argument 262 if (attrs->creatorid != 0 && s->creatorid != attrs->creatorid) in handle_dumpstates() 264 if (attrs->ifname[0] != 0 && in handle_dumpstates() 265 strncmp(attrs->ifname, s->kif->pfik_name, IFNAMSIZ) != 0) in handle_dumpstates() 267 if (attrs->proto != 0 && s->key[PF_SK_WIRE]->proto != attrs->proto) in handle_dumpstates() 269 if (attrs->af != 0 && af != attrs->af) in handle_dumpstates() 272 &attrs->mask, &attrs->addr, af) && in handle_dumpstates() 274 &attrs->mask, &attrs->addr, af) && in handle_dumpstates() 276 &attrs->mask, &attrs->addr, af) && in handle_dumpstates() 278 &attrs->mask, &attrs->addr, af)) in handle_dumpstates() [all …]
|
/freebsd/tools/pkgbase/ |
H A D | metalog_reader.lua | 200 local res, attrs = {}, {} 206 attrs[k] = v 210 res.attrs = attrs 225 for k in pairs(l.attrs) do 227 if l.attrs[k] ~= o.attrs[k] and o.attrs[k] ~= nil then 291 if row.attrs.type == 'file' then 292 sz = sz + tonumber(row.attrs.size) 304 if tonumber(row.attrs.mode, 8) & mode ~= 0 then 395 rows[1].attrs.type .. 398 if rows[1].attrs.type == "dir" then [all …]
|