/Linux-v6.6/tools/testing/radix-tree/ |
D | idr-test.c | 38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test() 39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test() 52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test() 394 id = idr_alloc_cyclic(&idr, item, 0, 0, GFP_KERNEL); in idr_checks()
|
/Linux-v6.6/Documentation/translations/zh_CN/core-api/ |
D | idr.rst | 50 如果需要按顺序分配ID,可以使用idr_alloc_cyclic()。处理较大数量的ID时,IDR的效率会
|
/Linux-v6.6/lib/ |
D | idr.c | 117 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc_cyclic() function 136 EXPORT_SYMBOL(idr_alloc_cyclic);
|
/Linux-v6.6/include/linux/ |
D | idr.h | 117 int idr_alloc_cyclic(struct idr *, void *ptr, int start, int end, gfp_t);
|
/Linux-v6.6/Documentation/core-api/ |
D | idr.rst | 46 idr_alloc_cyclic(). The IDR becomes less efficient when dealing
|
/Linux-v6.6/drivers/slimbus/ |
D | messaging.c | 69 ret = idr_alloc_cyclic(&ctrl->tid_idr, txn, 1, in slim_alloc_txn_tid()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_pgt.c | 77 err = idr_alloc_cyclic(&mlxsw_sp->pgt->pgt_idr, NULL, in mlxsw_sp_pgt_mid_alloc_range()
|
/Linux-v6.6/drivers/net/ethernet/marvell/prestera/ |
D | prestera_counter.c | 235 free_id = idr_alloc_cyclic(&block->counter_idr, NULL, block->offset, in prestera_counter_get_vacant()
|
/Linux-v6.6/kernel/ |
D | pid.c | 236 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid()
|
/Linux-v6.6/fs/vboxsf/ |
D | utils.c | 31 ret = idr_alloc_cyclic(&sbi->ino_idr, inode, 1, 0, GFP_ATOMIC); in vboxsf_new_inode()
|
/Linux-v6.6/drivers/tty/serial/ |
D | mps2-uart.c | 519 id = idr_alloc_cyclic(&ports_idr, (void *)mps_port, 0, MPS2_MAX_PORTS, GFP_KERNEL); in mps2_of_get_port()
|
/Linux-v6.6/ipc/ |
D | util.c | 230 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()
|
/Linux-v6.6/fs/smb/server/ |
D | vfs_cache.c | 538 ret = idr_alloc_cyclic(ft->idr, fp, 0, INT_MAX - 1, GFP_NOWAIT); in __open_id()
|
/Linux-v6.6/drivers/soc/qcom/ |
D | apr.c | 110 id = idr_alloc_cyclic(&pr->svcs_idr, svc, GPR_DYNAMIC_PORT_START, in gpr_alloc_port()
|
D | qmi_interface.c | 322 ret = idr_alloc_cyclic(&qmi->txns, txn, 0, U16_MAX, GFP_KERNEL); in qmi_txn_init()
|
/Linux-v6.6/fs/notify/inotify/ |
D | inotify_user.c | 403 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT); in inotify_add_to_idr()
|
/Linux-v6.6/net/rxrpc/ |
D | conn_client.c | 155 id = idr_alloc_cyclic(&local->conn_ids, conn, 1, 0x40000000, in rxrpc_alloc_client_connection()
|
/Linux-v6.6/drivers/rpmsg/ |
D | qcom_glink_native.c | 470 ret = idr_alloc_cyclic(&glink->lcids, channel, in qcom_glink_send_open_req() 720 ret = idr_alloc_cyclic(&channel->liids, intent, 1, -1, GFP_ATOMIC); in qcom_glink_alloc_intent()
|
/Linux-v6.6/drivers/gpu/drm/msm/ |
D | msm_gem_submit.c | 954 submit->fence_id = idr_alloc_cyclic(&queue->fence_idr, in msm_ioctl_gem_submit()
|
/Linux-v6.6/drivers/target/ |
D | target_core_device.c | 919 id = idr_alloc_cyclic(&devices_idr, dev, 0, INT_MAX, GFP_KERNEL); in target_configure_device()
|
/Linux-v6.6/fs/kernfs/ |
D | dir.c | 621 ret = idr_alloc_cyclic(&root->ino_idr, kn, 1, 0, GFP_ATOMIC); in __kernfs_new_node()
|
/Linux-v6.6/sound/soc/qcom/qdsp6/ |
D | topology.c | 184 ret = idr_alloc_cyclic(&apm->modules_idr, mod, in audioreach_tplg_alloc_module()
|
/Linux-v6.6/net/sctp/ |
D | associola.c | 1638 ret = idr_alloc_cyclic(&sctp_assocs_id, asoc, SCTP_ALL_ASSOC + 1, 0, in sctp_assoc_set_id()
|
/Linux-v6.6/net/sched/ |
D | cls_u32.c | 310 int id = idr_alloc_cyclic(&tp_c->handle_idr, ptr, 1, 0x7FF, GFP_KERNEL); in gen_new_htid()
|
/Linux-v6.6/kernel/bpf/ |
D | syscall.c | 356 id = idr_alloc_cyclic(&map_idr, map, 1, INT_MAX, GFP_ATOMIC); in bpf_map_alloc_id() 2070 id = idr_alloc_cyclic(&prog_idr, prog, 1, INT_MAX, GFP_ATOMIC); in bpf_prog_alloc_id() 2936 id = idr_alloc_cyclic(&link_idr, link, 1, INT_MAX, GFP_ATOMIC); in bpf_link_alloc_id()
|