Home
last modified time | relevance | path

Searched refs:next_id (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_id.c28 __u32 i, next_id, info_len, nr_id_found, duration = 0; in test_bpf_obj_id() local
189 next_id = 0; in test_bpf_obj_id()
190 while (!bpf_prog_get_next_id(next_id, &next_id)) { in test_bpf_obj_id()
197 prog_fd = bpf_prog_get_fd_by_id(next_id); in test_bpf_obj_id()
203 prog_fd, next_id, errno)) in test_bpf_obj_id()
207 if (prog_infos[i].id == next_id) in test_bpf_obj_id()
251 next_id = 0; in test_bpf_obj_id()
252 while (!bpf_map_get_next_id(next_id, &next_id)) { in test_bpf_obj_id()
258 map_fd = bpf_map_get_fd_by_id(next_id); in test_bpf_obj_id()
264 map_fd, next_id, errno)) in test_bpf_obj_id()
[all …]
/kernel/linux/linux-5.10/ipc/
Dipc_sysctl.c199 .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),
Dnamespace.c99 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()
Dutil.c124 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()
Dshm.c958 int next_id; in shm_get_stat() local
966 for (total = 0, next_id = 0; total < in_use; next_id++) { in shm_get_stat()
970 ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); in shm_get_stat()
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Dtimerdev.c28 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()
Dlayer2.h61 u_int next_id; member
/kernel/linux/linux-5.10/samples/bpf/
Dtrace_event_user.c104 __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()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf.h225 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id);
226 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id);
227 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id);
228 LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
Dbpf.c758 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument
768 *next_id = attr.next_id; in bpf_obj_get_next_id()
773 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument
775 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id()
778 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument
780 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id()
783 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument
785 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id()
788 int bpf_link_get_next_id(__u32 start_id, __u32 *next_id) in bpf_link_get_next_id() argument
790 return bpf_obj_get_next_id(start_id, next_id, BPF_LINK_GET_NEXT_ID); in bpf_link_get_next_id()
Dbtf_dump.c1305 __u32 next_id; in btf_dump_emit_type_chain() local
1325 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_chain()
1326 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain()
/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/
Drkisp1-dev.c245 unsigned int next_id = 0; in rkisp1_subdev_notifier() local
259 0, next_id, FWNODE_GRAPH_ENDPOINT_NEXT); in rkisp1_subdev_notifier()
282 next_id = vep.base.id + 1; in rkisp1_subdev_notifier()
293 if (next_id == 0) in rkisp1_subdev_notifier()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Drestrack.h23 u32 next_id; member
Drestrack.c246 &rt->next_id, GFP_KERNEL); in rdma_restrack_add()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_cmd.c223 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()
/kernel/linux/linux-5.10/include/linux/
Dipc_namespace.h24 int next_id; member
/kernel/linux/linux-5.10/arch/x86/mm/
Dmmio-mod.c224 static atomic_t next_id; in ioremap_trace_core() local
248 .id = atomic_inc_return(&next_id) in ioremap_trace_core()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dvnic_main.c364 int next_id = VNIC_ID(0); in get_first_vnic_port() local
366 vinfo = hfi1_netdev_get_first_data(dd, &next_id); in get_first_vnic_port()
368 if (next_id > VNIC_ID(VNIC_MASK)) in get_first_vnic_port()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_dquot.c724 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local
732 if (next_id < *id) in xfs_dq_get_next_id()
736 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id()
737 *id = next_id; in xfs_dq_get_next_id()
742 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
/kernel/linux/linux-5.10/fs/hfs/
Dmdb.c153 HFS_SB(sb)->next_id = be32_to_cpu(mdb->drNxtCNID); in hfs_mdb_get()
276 mdb->drNxtCNID = cpu_to_be32(HFS_SB(sb)->next_id); in hfs_mdb_commit()
Dhfs_fs.h121 u32 next_id; /* The next available member
/kernel/linux/linux-5.10/net/mptcp/
Dpm_netlink.c48 unsigned int next_id; member
488 if (pernet->next_id > 255) in mptcp_pm_nl_append_new_local_addr()
508 entry->addr.id = pernet->next_id++; in mptcp_pm_nl_append_new_local_addr()
1108 pernet->next_id = 1; in pm_nl_init_net()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c111 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()
/kernel/linux/linux-5.10/kernel/
Dseccomp.c142 u64 next_id; member
828 return filter->notif->next_id++; in seccomp_next_notify_id()
1490 filter->notif->next_id = get_random_u64(); in init_listener()
/kernel/linux/linux-5.10/samples/vfio-mdev/
Dmbochs.c179 u32 next_id; member
553 mdev_state->next_id = 1; in mbochs_create()
915 dmabuf->id = mdev_state->next_id++; in mbochs_dmabuf_alloc()

12