Home
last modified time | relevance | path

Searched refs:maskp (Results 1 – 19 of 19) sorted by relevance

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c35 unsigned long *maskp; member
62 return (bmp->maskp[n / bitsperlong] >> (n % bitsperlong)) & 1; in _getbit()
72 bmp->maskp[n / bitsperlong] |= 1UL << (n % bitsperlong); in _setbit()
74 bmp->maskp[n / bitsperlong] &= in _setbit()
92 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc()
93 if (bmp->maskp == 0) { in bitmask_alloc()
105 free(bmp->maskp); in bitmask_free()
106 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ in bitmask_free()
391 return bmp->maskp; in bitmask_mask()
/external/ltp/testcases/kernel/syscalls/mbind/
Dmbind01.c124 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default()
182 TEST(get_mempolicy(&policy, getnodemask->maskp, in do_test()
198 tst_res_hexd(TINFO, exp_mask->maskp, in do_test()
200 tst_res_hexd(TINFO, getnodemask->maskp, in do_test()
Dmbind02.c69 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, MPOL_MF_STRICT)); in verify_policy()
Dmbind03.c66 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
Dmbind04.c57 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
/external/iptables/extensions/
Dlibebt_ip.c472 struct in_addr *addrp, *maskp; in brip_print() local
479 maskp = (struct in_addr *)&info->smsk; in brip_print()
481 xtables_ipmask_to_numeric(maskp)); in brip_print()
488 maskp = (struct in_addr *)&info->dmsk; in brip_print()
490 xtables_ipmask_to_numeric(maskp)); in brip_print()
643 struct in_addr *addrp, *maskp; in brip_xlate_nh() local
652 maskp = (struct in_addr *)&info->smsk; in brip_xlate_nh()
657 maskp = (struct in_addr *)&info->dmsk; in brip_xlate_nh()
667 xtables_ipmask_to_numeric(maskp)); in brip_xlate_nh()
Dlibebt_ip6.c496 struct in6_addr *addrp, *maskp; in brip_xlate_nh() local
505 maskp = (struct in6_addr *)&info->smsk; in brip_xlate_nh()
510 maskp = (struct in6_addr *)&info->dmsk; in brip_xlate_nh()
520 xtables_ip6mask_to_numeric(maskp)); in brip_xlate_nh()
/external/ltp/testcases/kernel/syscalls/get_mempolicy/
Dget_mempolicy01.c244 nodemask->maskp, nodemask->size)); in do_test()
262 nodemask->maskp, nodemask->size, 0)); in do_test()
280 TEST(ret = ltp_syscall(__NR_get_mempolicy, &policy, getnodemask->maskp, in do_test()
/external/libpcap/
Dpcap-null.c51 bpf_u_int32 *maskp _U_, char *errbuf) in pcap_lookupnet()
Dpcap-npf.c2339 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, in pcap_lookupnet() argument
2352 *netp = *maskp = 0; in pcap_lookupnet()
2363 *maskp = t_addr->sin_addr.S_un.S_addr; in pcap_lookupnet()
2365 *netp &= *maskp; in pcap_lookupnet()
2371 *netp = *maskp = 0; in pcap_lookupnet()
Dpcap.c1571 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, argument
1607 *netp = *maskp = 0;
1649 *maskp = sin4->sin_addr.s_addr;
1650 if (*maskp == 0) {
1652 *maskp = IN_CLASSA_NET;
1654 *maskp = IN_CLASSB_NET;
1656 *maskp = IN_CLASSC_NET;
1663 *netp &= *maskp;
/external/ltp/testcases/kernel/mem/vma/
Dvma04.c151 MPOL_BIND, nmask->maskp, nmask->size, 0) != 0) { in mem_bind()
164 MPOL_INTERLEAVE, nmask->maskp, nmask->size, 0) != 0) { in mem_interleave()
Dvma02.c98 err = mbind(addr + pagesize, pagesize, MPOL_BIND, nmask->maskp, in main()
/external/iptables/libxtables/
Dxtables.c1701 struct in_addr *maskp, unsigned int *naddrs) in xtables_ipparse_any() argument
1715 memcpy(maskp, addrp, sizeof(*maskp)); in xtables_ipparse_any()
1718 if (maskp->s_addr == 0U) in xtables_ipparse_any()
1724 addrp[j++].s_addr &= maskp->s_addr; in xtables_ipparse_any()
1991 struct in6_addr *maskp, unsigned int *naddrs) in xtables_ip6parse_any() argument
2006 memcpy(maskp, addrp, sizeof(*maskp)); in xtables_ip6parse_any()
2009 if (memcmp(maskp, &zero_addr, sizeof(zero_addr)) == 0) in xtables_ip6parse_any()
2016 addrp[j].s6_addr32[k] &= maskp->s6_addr32[k]; in xtables_ip6parse_any()
/external/ltp/testcases/kernel/syscalls/set_mempolicy/
Dset_mempolicy03.c52 TEST(set_mempolicy(mode, bm->maskp, bm->size+1)); in verify_mempolicy()
Dset_mempolicy01.c53 TEST(set_mempolicy(mode, bm->maskp, bm->size+1)); in verify_mempolicy()
Dset_mempolicy02.c88 TEST(set_mempolicy(MPOL_INTERLEAVE, bm->maskp, bm->size+1)); in verify_set_mempolicy()
Dset_mempolicy04.c112 TEST(set_mempolicy(MPOL_INTERLEAVE, bm->maskp, bm->size+1)); in verify_set_mempolicy()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c224 ret = mbind(mem, size, MPOL_BIND, bm->maskp, bm->size + 1, 0); in alloc_free_huge_on_node()