/linux/kernel/ |
A D | sysctl-test.c | 40 GFP_USER); in sysctl_test_api_dointvec_null_tbl_data() 86 GFP_USER); in sysctl_test_api_dointvec_table_maxlen_unset() 129 GFP_USER); in sysctl_test_api_dointvec_table_len_is_zero() 163 GFP_USER); in sysctl_test_api_dointvec_table_read_but_position_set() 199 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_read_happy_single_positive() 230 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_read_happy_single_negative() 260 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_write_happy_single_positive() 290 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_write_happy_single_negative() 321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min() 359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max()
|
/linux/scripts/coccinelle/api/ |
A D | memdup_user.cocci | 32 - (size,\(GFP_KERNEL\|GFP_USER\| 33 - \(GFP_KERNEL\|GFP_USER\)|__GFP_NOWARN\)); 56 - to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\)); 80 (size,\(GFP_KERNEL\|GFP_USER\| 81 \(GFP_KERNEL\|GFP_USER\)|__GFP_NOWARN\)); 92 * to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
|
/linux/net/mptcp/ |
A D | token_test.c | 11 GFP_USER); in build_req_sock() 37 GFP_USER); in build_icsk() 47 GFP_USER); in build_ctx() 56 msk = kunit_kzalloc(test, sizeof(struct mptcp_sock), GFP_USER); in build_msk()
|
/linux/security/selinux/ |
A D | netlink.c | 76 skb = nlmsg_new(len, GFP_USER); in selnl_notify() 87 netlink_broadcast(selnl, skb, 0, SELNLGRP_AVC, GFP_USER); in selnl_notify()
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | memory-allocation.rst | 57 * 用户空间的分配应该使用 ``GFP_USER`` 、 ``GFP_HIGHUSER`` 或 ``GFP_HIGHUSER_MOVABLE`` 65 ``GFP_USER`` 意味着分配的内存是不可迁移的,它必须被内核直接访问。
|
/linux/arch/alpha/kernel/ |
A D | srm_env.c | 69 page = (char *)__get_free_page(GFP_USER); in srm_env_proc_show() 94 char *buf = (char *) __get_free_page(GFP_USER); in srm_env_proc_write()
|
/linux/include/linux/ |
A D | bpfptr.h | 68 void *p = kvmalloc(len, GFP_USER | __GFP_NOWARN); in kvmemdup_bpfptr()
|
A D | sockptr.h | 69 void *p = kmalloc_track_caller(len, GFP_USER | __GFP_NOWARN); in memdup_sockptr()
|
A D | gfp.h | 329 #define GFP_USER (__GFP_RECLAIM | __GFP_IO | __GFP_FS | __GFP_HARDWALL) macro 332 #define GFP_HIGHUSER (GFP_USER | __GFP_HIGHMEM)
|
/linux/drivers/net/netdevsim/ |
A D | bpf.c | 354 nmap->entry[idx].key = kmalloc(offmap->map.key_size, GFP_USER); in nsim_map_alloc_elem() 357 nmap->entry[idx].value = kmalloc(offmap->map.value_size, GFP_USER); in nsim_map_alloc_elem() 499 nmap = kzalloc(sizeof(*nmap), GFP_USER); in nsim_bpf_map_alloc()
|
/linux/kernel/bpf/ |
A D | map_in_map.c | 42 inner_map_meta = kzalloc(inner_map_meta_size, GFP_USER); in bpf_map_meta_alloc()
|
A D | syscall.c | 1099 value = kvmalloc(value_size, GFP_USER | __GFP_NOWARN); in map_lookup_elem() 1172 value = kvmalloc(value_size, GFP_USER | __GFP_NOWARN); in map_update_elem() 1282 next_key = kvmalloc(map->key_size, GFP_USER); in map_get_next_key() 1334 key = kvmalloc(map->key_size, GFP_USER | __GFP_NOWARN); in generic_map_delete_batch() 1391 key = kvmalloc(map->key_size, GFP_USER | __GFP_NOWARN); in generic_map_update_batch() 1395 value = kvmalloc(value_size, GFP_USER | __GFP_NOWARN); in generic_map_update_batch() 1578 value = kvmalloc(value_size, GFP_USER | __GFP_NOWARN); in map_lookup_and_delete_elem() 2754 link = kzalloc(sizeof(*link), GFP_USER); in bpf_tracing_prog_attach() 2987 link = kzalloc(sizeof(*link), GFP_USER); in bpf_perf_link_attach() 3079 link = kzalloc(sizeof(*link), GFP_USER); in bpf_raw_tracepoint_open() [all …]
|
A D | bpf_local_storage.c | 564 smap = kzalloc(sizeof(*smap), GFP_USER | __GFP_NOWARN | __GFP_ACCOUNT); in bpf_local_storage_map_alloc() 575 GFP_USER | __GFP_NOWARN | __GFP_ACCOUNT); in bpf_local_storage_map_alloc()
|
A D | hashtab.c | 327 GFP_USER | __GFP_NOWARN); in prealloc_init() 382 GFP_USER | __GFP_NOWARN); in alloc_extra_elems() 478 htab = kzalloc(sizeof(*htab), GFP_USER | __GFP_ACCOUNT); in htab_map_alloc() 525 GFP_USER); in htab_map_alloc() 1647 keys = kvmalloc_array(key_size, bucket_size, GFP_USER | __GFP_NOWARN); in __htab_map_lookup_and_delete_batch() 1648 values = kvmalloc_array(value_size, bucket_size, GFP_USER | __GFP_NOWARN); in __htab_map_lookup_and_delete_batch() 2019 value_buf = kmalloc(buf_size, GFP_USER | __GFP_NOWARN); in bpf_iter_init_hash_map()
|
A D | local_storage.c | 317 __GFP_ZERO | GFP_USER | __GFP_ACCOUNT, numa_node); in cgroup_storage_map_alloc() 496 const gfp_t gfp = __GFP_ZERO | GFP_USER; in bpf_cgroup_storage_alloc()
|
A D | offload.c | 93 offload = kzalloc(sizeof(*offload), GFP_USER); in bpf_prog_offload_init() 375 offmap = kzalloc(sizeof(*offmap), GFP_USER); in bpf_map_offload_map_alloc()
|
/linux/net/bpf/ |
A D | test_run.c | 265 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init() 406 data = kzalloc(max_size, GFP_USER); in bpf_ctx_init() 609 sk = sk_alloc(net, AF_UNSPEC, GFP_USER, &bpf_dummy_proto, 1); in bpf_prog_test_run_skb() 673 if (pskb_expand_head(skb, nhead, 0, GFP_USER)) { in bpf_prog_test_run_skb()
|
/linux/security/apparmor/ |
A D | policy_unpack_test.c | 57 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct() 60 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct() 114 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init()
|
/linux/net/ethtool/ |
A D | ioctl.c | 796 info_buf = kcalloc(n_bits, sizeof(u32), GFP_USER); in ethtool_get_sset_info() 1020 GFP_USER); in ethtool_get_rxnfc() 1094 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir() 1138 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_set_rxfh_indir() 1220 rss_config = kzalloc(total_size, GFP_USER); in ethtool_get_rxfh() 1299 rss_config = kzalloc(indir_bytes + rxfh.key_size, GFP_USER); in ethtool_set_rxfh() 1547 data = kzalloc(PAGE_SIZE, GFP_USER); in ethtool_get_any_eeprom() 1616 data = kzalloc(PAGE_SIZE, GFP_USER); in ethtool_set_eeprom() 1904 data = kcalloc(test_len, sizeof(u64), GFP_USER); in ethtool_self_test() 2429 data = kzalloc(tuna.len, GFP_USER); in ethtool_get_tunable() [all …]
|
/linux/fs/nfs/ |
A D | nfs4namespace.c | 542 page = (char *) __get_free_page(GFP_USER); in nfs4_replace_transport() 545 page2 = (char *) __get_free_page(GFP_USER); in nfs4_replace_transport()
|
/linux/fs/isofs/ |
A D | namei.c | 161 page = alloc_page(GFP_USER); in isofs_lookup()
|
/linux/mm/ |
A D | mincore.c | 254 tmp = (void *) __get_free_page(GFP_USER); in SYSCALL_DEFINE3()
|
A D | util.c | 173 p = kmalloc_track_caller(len, GFP_USER | __GFP_NOWARN); in memdup_user() 199 p = kvmalloc(len, GFP_USER); in vmemdup_user()
|
/linux/include/trace/events/ |
A D | mmflags.h | 21 {(unsigned long)GFP_USER, "GFP_USER"}, \
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A D | mem.c | 155 gfp_t gfp = GFP_USER | __GFP_ZERO; in nvkm_mem_new_host()
|