/linux/tools/testing/radix-tree/ |
H A D | idr-test.c | 65 idr_replace(&idr, &idr, 10); in idr_replace_test() 97 assert(idr_replace(&idr, DUMMY_PTR, 3) == NULL); in idr_null_test() 98 assert(idr_replace(&idr, DUMMY_PTR, 4) == NULL); in idr_null_test() 99 assert(idr_replace(&idr, NULL, 4) == DUMMY_PTR); in idr_null_test() 100 assert(idr_replace(&idr, DUMMY_PTR, 11) == ERR_PTR(-ENOENT)); in idr_null_test() 115 assert(idr_replace(&idr, DUMMY_PTR, 3) == ERR_PTR(-ENOENT)); in idr_null_test() 116 assert(idr_replace(&idr, DUMMY_PTR, 0) == NULL); in idr_null_test() 117 assert(idr_replace(&idr, NULL, 0) == DUMMY_PTR); in idr_null_test() 265 idr_replace(idr, &name[i], 0); in idr_align_test() 276 idr_replace(idr, &name[i + 1], 0); in idr_align_test()
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | idr.rst | 42 如果需要更改与一个ID相关联的指针,可以调用idr_replace()。这样做的一个常见原因是通
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_pgt.c | 123 ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid); in mlxsw_sp_pgt_entry_create() 144 pgt_entry = idr_replace(&pgt->pgt_idr, NULL, pgt_entry->index); in mlxsw_sp_pgt_entry_destroy()
|
/linux/lib/ |
H A D | idr.c | 290 void *idr_replace(struct idr *idr, void *ptr, unsigned long id) in idr_replace() function 306 EXPORT_SYMBOL(idr_replace);
|
/linux/drivers/char/tpm/ |
H A D | tpm-chip.c | 440 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device() 456 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device()
|
/linux/drivers/gpu/drm/vgem/ |
H A D | vgem_fence.c | 218 fence = idr_replace(&vfile->fence_idr, NULL, arg->fence); in vgem_fence_signal_ioctl()
|
/linux/drivers/tee/ |
H A D | tee_shm.c | 152 ret = idr_replace(&teedev->idr, shm, id); in tee_shm_alloc_user_buf() 396 ret = idr_replace(&teedev->idr, shm, id); in tee_shm_register_user_buf()
|
/linux/include/linux/ |
H A D | idr.h | 124 void *idr_replace(struct idr *, void *, unsigned long id);
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_cmd.c | 499 idr_replace(&qdev->surf_id_idr, surf, surf->surface_id); in qxl_hw_surface_alloc() 524 idr_replace(&qdev->surf_id_idr, NULL, surf->surface_id); in qxl_hw_surface_dealloc()
|
/linux/net/l2tp/ |
H A D | l2tp_core.c | 536 void *old = idr_replace(&pn->l2tp_v3_session_idr, session2, session_key); in l2tp_session_collision_del() 604 old = idr_replace(&pn->l2tp_v3_session_idr, session, session_key); in l2tp_session_register() 606 old = idr_replace(&pn->l2tp_v2_session_idr, session, session_key); in l2tp_session_register() 1690 idr_replace(&pn->l2tp_tunnel_idr, tunnel, tunnel->tunnel_id); in l2tp_tunnel_register()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bo_list.c | 270 old = idr_replace(&fpriv->bo_list_handles, list, handle); in amdgpu_bo_list_ioctl()
|
/linux/Documentation/core-api/ |
H A D | idr.rst | 35 idr_replace(). One common reason to do this is to reserve an
|
/linux/drivers/gpu/drm/ |
H A D | drm_auth.c | 125 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
|
H A D | drm_mode_object.c | 89 idr_replace(&dev->mode_config.object_idr, obj, obj->id); in drm_mode_object_register()
|
H A D | drm_gem.c | 284 obj = idr_replace(&filp->object_idr, NULL, handle); in drm_gem_handle_delete()
|
/linux/net/sched/ |
H A D | cls_basic.c | 232 idr_replace(&head->handle_idr, fnew, fnew->handle); in basic_change()
|
H A D | cls_bpf.c | 513 idr_replace(&head->handle_idr, prog, handle); in cls_bpf_change()
|
H A D | cls_u32.c | 807 idr_replace(&ht->handle_idr, n, n->handle); in u32_replace_knode()
|
H A D | cls_flower.c | 2540 idr_replace(&head->handle_idr, fnew, fnew->handle); in fl_change() 2556 idr_replace(&head->handle_idr, fnew, fnew->handle); in fl_change()
|
H A D | act_api.c | 1321 idr_replace(&idrinfo->action_idr, a, a->tcfa_index); in tcf_idr_insert_many()
|
/linux/fs/nfs/ |
H A D | nfs4client.c | 506 idr_replace(&nn->cb_ident_idr, keep, drop->cl_cb_ident); in nfs4_swap_callback_idents() 509 idr_replace(&nn->cb_ident_idr, drop, save); in nfs4_swap_callback_idents()
|
/linux/ipc/ |
H A D | util.c | 251 idr_replace(&ids->ipcs_idr, new, idx); in ipc_idr_alloc()
|
/linux/kernel/ |
H A D | pid.c | 283 idr_replace(&upid->ns->idr, pid, upid->nr); in alloc_pid()
|
/linux/drivers/md/ |
H A D | dm.c | 2346 old_md = idr_replace(&_minor_idr, md, minor); in alloc_dev() 2669 idr_replace(&_minor_idr, MINOR_ALLOCED, MINOR(disk_devt(dm_disk(md)))); in __dm_destroy()
|
/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_nested.c | 707 if (idr_replace(&kvm->arch.kvm_nested_guest_idr, gp, lpid)) in __add_nested()
|