Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
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 …]
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()
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()
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-6.12.1/ipc/
Dipc_sysctl.c155 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id,
156 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id),
164 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id,
165 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id),
173 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id,
174 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
214 if (((table->data == &ns->ids[IPC_SEM_IDS].next_id) || in ipc_permissions()
215 (table->data == &ns->ids[IPC_MSG_IDS].next_id) || in ipc_permissions()
216 (table->data == &ns->ids[IPC_SHM_IDS].next_id)) && in ipc_permissions()
280 else if (tbl[i].data == &init_ipc_ns.ids[IPC_SEM_IDS].next_id) in setup_ipc_sysctls()
[all …]
Dnamespace.c127 int next_id; in free_ipcs() local
134 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
135 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
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()
/linux-6.12.1/drivers/hwtracing/coresight/
Dcoresight-trace-id.c51 int found_id = 0, bit = 1, next_id; in coresight_trace_id_find_odd_id() local
58 next_id = find_next_zero_bit(id_map->used_ids, in coresight_trace_id_find_odd_id()
60 if ((next_id < CORESIGHT_TRACE_ID_RES_TOP) && (next_id & 0x1)) in coresight_trace_id_find_odd_id()
61 found_id = next_id; in coresight_trace_id_find_odd_id()
63 bit = next_id + 1; in coresight_trace_id_find_odd_id()
/linux-6.12.1/tools/lib/bpf/
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()
Dbpf.h479 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id);
480 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id);
481 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id);
482 LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
Dbpf.c1013 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument
1024 *next_id = attr.next_id; in bpf_obj_get_next_id()
1029 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument
1031 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id()
1034 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument
1036 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id()
1039 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument
1041 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id()
1044 int bpf_link_get_next_id(__u32 start_id, __u32 *next_id) in bpf_link_get_next_id() argument
1046 return bpf_obj_get_next_id(start_id, next_id, BPF_LINK_GET_NEXT_ID); in bpf_link_get_next_id()
/linux-6.12.1/drivers/virt/
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-6.12.1/fs/xfs/scrub/
Ddqiterate.c94 uint64_t next_id; in xchk_dquot_iter_advance_bmap() local
123 next_id = cursor->bmap.br_startoff * qi->qi_dqperchunk; in xchk_dquot_iter_advance_bmap()
124 if (next_id > XFS_DQ_ID_MAX) { in xchk_dquot_iter_advance_bmap()
131 *next_ondisk_id = next_id; in xchk_dquot_iter_advance_bmap()
/linux-6.12.1/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
/linux-6.12.1/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()
/linux-6.12.1/drivers/infiniband/core/
Drestrack.h23 u32 next_id; member
/linux-6.12.1/drivers/gpu/drm/qxl/
Dqxl_cmd.c215 uint64_t id, next_id; in qxl_garbage_collect() local
227 next_id = info->next; in qxl_garbage_collect()
231 next_id); in qxl_garbage_collect()
242 id = next_id; in qxl_garbage_collect()
/linux-6.12.1/arch/x86/mm/
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-6.12.1/include/linux/
Dipc_namespace.h26 int next_id; member
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dvnic_main.c322 int next_id = VNIC_ID(0); in get_first_vnic_port() local
324 vinfo = hfi1_netdev_get_first_data(dd, &next_id); in get_first_vnic_port()
326 if (next_id > VNIC_ID(VNIC_MASK)) in get_first_vnic_port()
/linux-6.12.1/drivers/soc/hisilicon/
Dkunpeng_hccs.h155 u8 next_id; member
/linux-6.12.1/net/mptcp/
Dpm_netlink.c39 unsigned int next_id; member
981 if (pernet->next_id == MPTCP_PM_MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr()
982 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
1023 pernet->next_id); in mptcp_pm_nl_append_new_local_addr()
1024 if (!entry->addr.id && pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr()
1025 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
1034 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr()
1035 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr()
1746 pernet->next_id = 1; in mptcp_pm_nl_flush_addrs_doit()
2429 pernet->next_id = 1; in pm_nl_init_net()
/linux-6.12.1/fs/xfs/
Dxfs_dquot.c727 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local
735 if (next_id < *id) in xfs_dq_get_next_id()
739 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id()
740 *id = next_id; in xfs_dq_get_next_id()
745 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
/linux-6.12.1/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()

12