/linux/Documentation/translations/zh_CN/core-api/ |
H A D | memory-allocation.rst | 47 * 如果分配是从一个原子上下文中进行的,例如中断处理程序,使用 ``GFP_NOWAIT`` 。这个 48 标志可以防止直接回收和IO或文件系统操作。因此,在内存压力下, ``GFP_NOWAIT`` 分配 85 * ``GFP_KERNEL & ~__GFP_DIRECT_RECLAIM`` (or ``GFP_NOWAIT`` ) - 乐观分配,不
|
/linux/drivers/sh/intc/ |
H A D | core.c | 207 d = kzalloc(sizeof(*d), GFP_NOWAIT); in register_intc_controller() 221 GFP_NOWAIT); in register_intc_controller() 247 d->reg = kcalloc(d->nr_reg, sizeof(*d->reg), GFP_NOWAIT); in register_intc_controller() 252 d->smp = kcalloc(d->nr_reg, sizeof(*d->smp), GFP_NOWAIT); in register_intc_controller() 271 GFP_NOWAIT); in register_intc_controller() 287 GFP_NOWAIT); in register_intc_controller()
|
/linux/kernel/time/ |
H A D | tick-broadcast.c | 1233 zalloc_cpumask_var(&tick_broadcast_mask, GFP_NOWAIT); in tick_broadcast_init() 1234 zalloc_cpumask_var(&tick_broadcast_on, GFP_NOWAIT); in tick_broadcast_init() 1235 zalloc_cpumask_var(&tmpmask, GFP_NOWAIT); in tick_broadcast_init() 1237 zalloc_cpumask_var(&tick_broadcast_oneshot_mask, GFP_NOWAIT); in tick_broadcast_init() 1238 zalloc_cpumask_var(&tick_broadcast_pending_mask, GFP_NOWAIT); in tick_broadcast_init() 1239 zalloc_cpumask_var(&tick_broadcast_force_mask, GFP_NOWAIT); in tick_broadcast_init()
|
/linux/lib/ |
H A D | ref_tracker.c | 38 GFP_NOWAIT | __GFP_NOWARN); in ref_tracker_get_stats() 104 sbuf = kmalloc(STACK_BUF_SIZE, GFP_NOWAIT | __GFP_NOWARN); in __ref_tracker_dir_pr_ostream() 241 GFP_NOWAIT | __GFP_NOWARN); in ref_tracker_free()
|
H A D | idr.c | 418 bitmap = kzalloc(sizeof(*bitmap), GFP_NOWAIT); in ida_alloc_range() 445 bitmap = kzalloc(sizeof(*bitmap), GFP_NOWAIT); in ida_alloc_range()
|
/linux/drivers/md/dm-vdo/ |
H A D | flush.c | 105 if ((gfp_mask & GFP_NOWAIT) == GFP_NOWAIT) { in allocate_flush() 398 struct vdo_flush *flush = mempool_alloc(vdo->flusher->flush_pool, GFP_NOWAIT); in vdo_launch_flush()
|
/linux/tools/testing/radix-tree/ |
H A D | idr-test.c | 139 assert(idr_alloc(&idr, item, i, i + 1, GFP_NOWAIT) == i); in idr_nowait_test() 445 id = ida_alloc_min(&ida, 256, GFP_NOWAIT); in ida_check_nomem() 447 id = ida_alloc_min(&ida, 1UL << 30, GFP_NOWAIT); in ida_check_nomem() 461 int id = ida_alloc(&ida, GFP_NOWAIT); in ida_check_conv_user()
|
/linux/drivers/dma/ |
H A D | loongson2-apb-dma.c | 338 desc = kzalloc(struct_size(desc, sg, sg_len), GFP_NOWAIT); in ls2x_dma_prep_slave_sg() 350 ldma_sg->hw = dma_pool_alloc(lchan->pool, GFP_NOWAIT, &ldma_sg->llp); in ls2x_dma_prep_slave_sg() 403 desc = kzalloc(struct_size(desc, sg, num_periods), GFP_NOWAIT); in ls2x_dma_prep_dma_cyclic() 416 ldma_sg->hw = dma_pool_alloc(lchan->pool, GFP_NOWAIT, &ldma_sg->llp); in ls2x_dma_prep_dma_cyclic()
|
H A D | loongson1-apb-dma.c | 207 desc = kzalloc(sizeof(*desc), GFP_NOWAIT); in ls1x_dma_alloc_desc() 255 lli = dma_pool_zalloc(chan->lli_pool, GFP_NOWAIT, &phys); in ls1x_dma_prep_lli() 338 sgl = kmalloc_array(sg_len, sizeof(*sgl), GFP_NOWAIT); in ls1x_dma_prep_dma_cyclic()
|
/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_dump.c | 162 iter.start = __vmalloc(file_size, GFP_NOWAIT); in etnaviv_core_dump() 232 dev_coredumpv(gpu->dev, iter.start, iter.data - iter.start, GFP_NOWAIT); in etnaviv_core_dump()
|
/linux/drivers/gpu/drm/ |
H A D | drm_modeset_lock.c | 89 return stack_depot_save(entries, n, GFP_NOWAIT | __GFP_NOWARN); in __drm_stack_depot_save() 99 buf = kmalloc(PAGE_SIZE, GFP_NOWAIT | __GFP_NOWARN); in __drm_stack_depot_print()
|
/linux/security/selinux/ |
H A D | avc.c | 296 GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_decision_alloc() 303 GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_decision_alloc() 309 GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_decision_alloc() 315 GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_decision_alloc() 343 xp_node = kmem_cache_zalloc(avc_xperms_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_xperms_alloc() 498 node = kmem_cache_zalloc(avc_node_cachep, GFP_NOWAIT | __GFP_NOWARN); in avc_alloc_node()
|
/linux/samples/livepatch/ |
H A D | livepatch-shadow-fix2.c | 51 sizeof(*shadow_count), GFP_NOWAIT, in livepatch_fix2_dummy_check()
|
/linux/mm/ |
H A D | mmu_gather.c | 35 batch = (void *)__get_free_page(GFP_NOWAIT | __GFP_NOWARN); in tlb_next_batch() 359 *batch = (struct mmu_table_batch *)__get_free_page(GFP_NOWAIT | __GFP_NOWARN);
|
/linux/drivers/dca/ |
H A D | dca-sysfs.c | 45 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
|
/linux/crypto/async_tx/ |
H A D | async_memcpy.c | 43 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in async_memcpy()
|
H A D | async_xor.c | 195 unmap = dmaengine_get_unmap_data(device->dev, src_cnt+1, GFP_NOWAIT); in async_xor_offs() 328 unmap = dmaengine_get_unmap_data(device->dev, src_cnt, GFP_NOWAIT); in async_xor_val_offs()
|
H A D | async_pq.c | 190 unmap = dmaengine_get_unmap_data(device->dev, disks, GFP_NOWAIT); in async_gen_syndrome() 312 unmap = dmaengine_get_unmap_data(device->dev, disks, GFP_NOWAIT); in async_syndrome_val()
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_engine_heartbeat.c | 223 rq = heartbeat_create(ce, GFP_NOWAIT | __GFP_NOWARN); in heartbeat() 285 rq = heartbeat_create(ce, GFP_NOWAIT | __GFP_NOWARN); in __intel_engine_pulse()
|
/linux/kernel/trace/ |
H A D | pid_list.c | 357 chunk = kzalloc(sizeof(*chunk), GFP_NOWAIT); in pid_list_refill_irq() 368 chunk = kzalloc(sizeof(*chunk), GFP_NOWAIT); in pid_list_refill_irq()
|
/linux/arch/arm/kernel/ |
H A D | topology.c | 95 GFP_NOWAIT); in parse_dt_topology()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_dev_coredump.c | 336 coredump = kzalloc(sizeof(*coredump), GFP_NOWAIT); in amdgpu_coredump() 365 dev_coredumpm(dev->dev, THIS_MODULE, coredump, 0, GFP_NOWAIT, in amdgpu_coredump()
|
/linux/Documentation/core-api/ |
H A D | memory-allocation.rst | 46 handler, use ``GFP_NOWAIT``. This flag prevents direct reclaim and 48 ``GFP_NOWAIT`` allocation is likely to fail. Users of this flag need 100 * ``GFP_KERNEL & ~__GFP_DIRECT_RECLAIM`` (or ``GFP_NOWAIT``)- optimistic
|
/linux/drivers/dma/hsu/ |
H A D | hsu.c | 248 desc = kzalloc(sizeof(*desc), GFP_NOWAIT); in hsu_dma_alloc_desc() 252 desc->sg = kcalloc(nents, sizeof(*desc->sg), GFP_NOWAIT); in hsu_dma_alloc_desc()
|
/linux/fs/crypto/ |
H A D | bio.c | 149 GFP_NOWAIT | __GFP_NOWARN); in fscrypt_zeroout_range()
|