Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_id.c28 __u32 i, next_id, info_len, nr_id_found; in serial_test_bpf_obj_id() local
153 next_id = 0; in serial_test_bpf_obj_id()
154 while (!bpf_prog_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id()
161 prog_fd = bpf_prog_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
169 if (prog_infos[i].id == next_id) in serial_test_bpf_obj_id()
207 next_id = 0; in serial_test_bpf_obj_id()
208 while (!bpf_map_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id()
214 map_fd = bpf_map_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
222 if (map_infos[i].id == next_id) in serial_test_bpf_obj_id()
247 next_id = 0; in serial_test_bpf_obj_id()
[all …]
H A Dlookup_key.c41 __u32 next_id; in test_lookup_key() local
72 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
79 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
86 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
93 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
100 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
106 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
H A Dbtf_field_iter.c132 __u32 *next_str, *next_id; in test_btf_field_iter() local
152 while ((next_id = btf_field_iter_next(&it_ids))) { in test_btf_field_iter()
153 if (!ASSERT_EQ(*next_id, fields[id].ids[id_idx], "field_id_match")) in test_btf_field_iter()
H A Dkfunc_dynptr_param.c69 __u32 next_id; in verify_success() local
91 err = bpf_prog_get_next_id(0, &next_id); in verify_success()
/linux/tools/lib/bpf/
H A Dbtf_relocate.c147 __u32 next_id = *id; in btf_mark_embedded_composite_type_ids() local
149 while (next_id) { in btf_mark_embedded_composite_type_ids()
150 t = btf_type_by_id(r->btf, next_id); in btf_mark_embedded_composite_type_ids()
157 next_id = t->type; in btf_mark_embedded_composite_type_ids()
162 next_id = a->type; in btf_mark_embedded_composite_type_ids()
167 if (next_id < r->nr_dist_base_types) in btf_mark_embedded_composite_type_ids()
168 r->id_map[next_id] = BTF_IS_EMBEDDED; in btf_mark_embedded_composite_type_ids()
169 next_id = 0; in btf_mark_embedded_composite_type_ids()
172 next_id = 0; in btf_mark_embedded_composite_type_ids()
/linux/drivers/virt/
H A Dvmgenid.c22 u8 *next_id; member
32 memcpy(state->this_id, state->next_id, sizeof(state->this_id)); in vmgenid_notify()
40 state->next_id = virt_addr; in setup_vmgenid_state()
41 memcpy(state->this_id, state->next_id, sizeof(state->this_id)); in setup_vmgenid_state()
/linux/ipc/
H A Dnamespace.c131 int next_id; in free_ipcs() local
138 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
139 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
H A Dutil.c125 ids->next_id = -1; in ipc_init_ids()
204 int idx, next_id = -1; in ipc_idr_alloc() local
207 next_id = ids->next_id; in ipc_idr_alloc()
208 ids->next_id = -1; in ipc_idr_alloc()
223 if (next_id < 0) { /* !CHECKPOINT_RESTORE or next_id is unset */ in ipc_idr_alloc()
254 new->seq = ipcid_to_seqx(next_id); in ipc_idr_alloc()
255 idx = idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), in ipc_idr_alloc()
H A Dshm.c967 int next_id; in shm_get_stat()
975 for (total = 0, next_id = 0; total < in_use; next_id++) { in shm_get_stat()
979 ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); in shm_get_stat()
965 int next_id; shm_get_stat() local
/linux/samples/bpf/
H A 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()
/linux/security/landlock/
H A Did.c19 static atomic64_t next_id = ATOMIC64_INIT(COUNTER_PRE_INIT); variable
78 return init_id(&next_id, get_random_u32()); in landlock_init_id()
87 * Returns the value of next_id and increment it to let some space for the next
265 return get_id_range(number_of_ids, &next_id, get_random_u8()); in landlock_get_id_range()
/linux/net/mptcp/
H A Dpm_kernel.c28 u8 next_id; member
747 if (pernet->next_id == MPTCP_PM_MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr()
748 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
800 pernet->next_id); in mptcp_pm_nl_append_new_local_addr()
801 if (!entry->addr.id && pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr()
802 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
811 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr()
812 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr()
1324 pernet->next_id = 1; in mptcp_pm_nl_get_addr()
1612 pernet->next_id
[all...]
/linux/drivers/infiniband/core/
H A Drestrack.h21 * @next_id: Next ID to support cyclic allocation
23 u32 next_id; member
H A Drestrack.c222 &rt->next_id, GFP_KERNEL); in rdma_restrack_add()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_cmd.c216 uint64_t id, next_id; in qxl_garbage_collect() local
228 next_id = info->next; in qxl_garbage_collect()
232 next_id); in qxl_garbage_collect()
243 id = next_id; in qxl_garbage_collect()
/linux/arch/x86/mm/
H A Dmmio-mod.c222 static atomic_t next_id; in ioremap_trace_core() local
246 .id = atomic_inc_return(&next_id) in ioremap_trace_core()
/linux/include/linux/
H A Dipc_namespace.h26 int next_id; member
/linux/fs/xfs/
H A Dxfs_dquot.c758 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local
766 if (next_id < *id) in xfs_dq_get_next_id()
770 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id()
771 *id = next_id; in xfs_dq_get_next_id()
775 /* Nope, next_id is now past the current chunk, so find the next one */ in xfs_dq_get_next_id()
776 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
/linux/drivers/soc/hisilicon/
H A Dkunpeng_hccs.h182 u8 next_id; member
/linux/samples/vfio-mdev/
H A Dmbochs.c187 u32 next_id; member
545 mdev_state->next_id = 1; in mbochs_init_dev()
941 dmabuf->id = mdev_state->next_id++; in mbochs_dmabuf_alloc()
/linux/fs/hfs/
H A Dsuper.c327 atomic64_set(&sbi->next_id, 0); in hfs_fill_super()
/linux/kernel/
H A Dseccomp.c152 u64 next_id; member
1120 return filter->notif->next_id++; in seccomp_next_notify_id()
1900 filter->notif->next_id = get_random_u64(); in init_listener()
/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py3466 next_id = int((lower_id + higher_id) / 2)
3467 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id))
3469 ok, dbid = self.IdBetween(query, lower_id, next_id, "DESC")
3471 ok, dbid = self.IdBetween(query, next_id, higher_id, "")
3474 next_id = dbid
3475 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id))
3479 lower_id = next_id
3481 higher_id = next_id
3486 lower_id = next_id
3488 higher_id = next_id
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api.c2090 for (u32 next_id = 1; next_id < ~0; ++next_id) { in vcap_set_rule_id() local
2091 if (!vcap_rule_exists(ri->vctrl, next_id)) { in vcap_set_rule_id()
2092 ri->data.id = next_id; in vcap_set_rule_id()
/linux/kernel/bpf/
H A Dsyscall.c4865 #define BPF_OBJ_GET_NEXT_ID_LAST_FIELD next_id in bpf_map_get_fd_by_id()
4872 u32 next_id = attr->start_id; in bpf_map_get_fd_by_id()
4875 if (CHECK_ATTR(BPF_OBJ_GET_NEXT_ID) || next_id >= INT_MAX) in bpf_map_get_fd_by_id()
4881 next_id++; in bpf_map_get_fd_by_id()
4883 if (!idr_get_next(idr, &next_id)) in bpf_map_get_fd_by_id()
4888 err = put_user(next_id, &uattr->next_id); in bpf_map_get_fd_by_id()
4755 u32 next_id = attr->start_id; bpf_obj_get_next_id() local

12