/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 24 __u32 i, next_id, info_len, nr_id_found, duration = 0; in test_bpf_obj_id() local 142 next_id = 0; in test_bpf_obj_id() 143 while (!bpf_prog_get_next_id(next_id, &next_id)) { in test_bpf_obj_id() 150 prog_fd = bpf_prog_get_fd_by_id(next_id); in test_bpf_obj_id() 156 prog_fd, next_id, errno)) in test_bpf_obj_id() 160 if (prog_infos[i].id == next_id) in test_bpf_obj_id() 204 next_id = 0; in test_bpf_obj_id() 205 while (!bpf_map_get_next_id(next_id, &next_id)) { in test_bpf_obj_id() 211 map_fd = bpf_map_get_fd_by_id(next_id); in test_bpf_obj_id() 217 map_fd, next_id, errno)) in test_bpf_obj_id() [all …]
|
/Linux-v5.4/ipc/ |
D | ipc_sysctl.c | 199 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id, 200 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id), 208 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id, 209 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id), 217 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id, 218 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
|
D | namespace.c | 99 int next_id; in free_ipcs() local 106 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs() 107 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
|
D | util.c | 124 ids->next_id = -1; in ipc_init_ids() 203 int idx, next_id = -1; in ipc_idr_alloc() local 206 next_id = ids->next_id; in ipc_idr_alloc() 207 ids->next_id = -1; in ipc_idr_alloc() 222 if (next_id < 0) { /* !CHECKPOINT_RESTORE or next_id is unset */ in ipc_idr_alloc() 253 new->seq = ipcid_to_seqx(next_id); in ipc_idr_alloc() 254 idx = idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), in ipc_idr_alloc()
|
D | shm.c | 863 int next_id; in shm_get_stat() local 871 for (total = 0, next_id = 0; total < in_use; next_id++) { in shm_get_stat() 875 ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); in shm_get_stat()
|
/Linux-v5.4/samples/bpf/ |
D | trace_event_user.c | 104 __u32 stackid = 0, next_id; in print_stacks() local 121 while (bpf_map_get_next_key(stack_map, &stackid, &next_id) == 0) { in print_stacks() 122 bpf_map_delete_elem(stack_map, &next_id); in print_stacks() 123 stackid = next_id; in print_stacks()
|
/Linux-v5.4/drivers/isdn/mISDN/ |
D | timerdev.c | 28 int next_id; member 53 dev->next_id = 1; in mISDN_open() 185 id = timer->id = dev->next_id++; in misdn_add_timer() 186 if (dev->next_id < 0) in misdn_add_timer() 187 dev->next_id = 1; in misdn_add_timer()
|
D | layer2.h | 61 u_int next_id; member
|
D | layer2.c | 128 id = l2->next_id++; in l2_newid() 130 l2->next_id = 1; in l2_newid() 2119 l2->next_id = 1; in create_l2()
|
/Linux-v5.4/tools/lib/bpf/ |
D | bpf.c | 571 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument 581 *next_id = attr.next_id; in bpf_obj_get_next_id() 586 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument 588 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id() 591 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument 593 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id() 596 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument 598 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id()
|
D | bpf.h | 157 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id); 158 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id); 159 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id);
|
D | btf_dump.c | 1224 __u32 next_id; in btf_dump_emit_type_chain() local 1237 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_chain() 1238 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain() 1251 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_chain() 1252 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | restrack.h | 23 u32 next_id; member
|
D | restrack.c | 236 &rt->next_id, GFP_KERNEL); in rdma_restrack_add()
|
/Linux-v5.4/drivers/gpu/drm/qxl/ |
D | qxl_cmd.c | 223 uint64_t id, next_id; in qxl_garbage_collect() local 235 next_id = info->next; in qxl_garbage_collect() 239 next_id); in qxl_garbage_collect() 250 id = next_id; in qxl_garbage_collect()
|
/Linux-v5.4/include/linux/ |
D | ipc_namespace.h | 24 int next_id; member
|
/Linux-v5.4/fs/xfs/ |
D | xfs_dquot.c | 610 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local 618 if (next_id < *id) in xfs_dq_get_next_id() 622 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id() 623 *id = next_id; in xfs_dq_get_next_id() 628 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
|
/Linux-v5.4/arch/x86/mm/ |
D | mmio-mod.c | 224 static atomic_t next_id; in ioremap_trace_core() local 248 .id = atomic_inc_return(&next_id) in ioremap_trace_core()
|
/Linux-v5.4/fs/hfs/ |
D | mdb.c | 147 HFS_SB(sb)->next_id = be32_to_cpu(mdb->drNxtCNID); in hfs_mdb_get() 270 mdb->drNxtCNID = cpu_to_be32(HFS_SB(sb)->next_id); in hfs_mdb_commit()
|
D | hfs_fs.h | 121 u32 next_id; /* The next available member
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_counters.c | 111 unsigned long next_id = (unsigned long)id + 1; in mlx5_fc_counters_lookup_next() local 118 counter, tmp, next_id) { in mlx5_fc_counters_lookup_next()
|
/Linux-v5.4/kernel/bpf/ |
D | syscall.c | 2126 #define BPF_OBJ_GET_NEXT_ID_LAST_FIELD next_id 2133 u32 next_id = attr->start_id; in bpf_obj_get_next_id() local 2136 if (CHECK_ATTR(BPF_OBJ_GET_NEXT_ID) || next_id >= INT_MAX) in bpf_obj_get_next_id() 2142 next_id++; in bpf_obj_get_next_id() 2144 if (!idr_get_next(idr, &next_id)) in bpf_obj_get_next_id() 2149 err = put_user(next_id, &uattr->next_id); in bpf_obj_get_next_id()
|
/Linux-v5.4/kernel/ |
D | seccomp.c | 100 u64 next_id; member 732 return filter->notif->next_id++; in seccomp_next_notify_id() 1219 filter->notif->next_id = get_random_u64(); in init_listener()
|
/Linux-v5.4/tools/perf/scripts/python/ |
D | exported-sql-viewer.py | 2080 next_id = int((lower_id + higher_id) / 2) 2081 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id)) 2083 ok, dbid = self.IdBetween(query, lower_id, next_id, "DESC") 2085 ok, dbid = self.IdBetween(query, next_id, higher_id, "") 2088 next_id = dbid 2089 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id)) 2093 lower_id = next_id 2095 higher_id = next_id 2100 lower_id = next_id 2102 higher_id = next_id
|
/Linux-v5.4/samples/vfio-mdev/ |
D | mbochs.c | 179 u32 next_id; member 553 mdev_state->next_id = 1; in mbochs_create() 930 dmabuf->id = mdev_state->next_id++; in mbochs_dmabuf_alloc()
|