bpf_iter_bits_next(9)
π NAME π
bpf_iter_bits_next β bestie, this is literally how you grab the next bit in a bpf_iter_bits π
β¨ SYNOPSIS β¨
__bpf_kfunc int * bpf_iter_bits_next (struct bpf_iter_bits *it );
π ARGUMENTS π
itβ thebpf_iter_bitswe're checking. that's the one, that's the girlie we're inspecting π
π¦ DESCRIPTION π¦
okay so picture this: this function hands you back a pointer to a number that represents the value of the next bit in the bits πΈ that's it, that's the whole vibe β you point, you peek, you keep it moving.
and if there are, like, no further bits available? it returns NULL. that's it, show's over, no more bits, the bit buffet is closed π
ngl, NULL here is not an error, it's just the universe telling you you've hit the end of the bits. no cap.
π₯ SEE ALSO π₯
the kernel file is ./kernel/bpf/helpers.c, and these are all the besties in the same orbit π«Ά:
bpf_obj_new(9)bpf_percpu_obj_new(9)bpf_obj_drop(9)bpf_percpu_obj_drop(9)bpf_refcount_acquire(9)bpf_list_push_front(9)bpf_list_push_back(9)bpf_rbtree_add(9)bpf_task_acquire(9)bpf_task_release(9)bpf_cgroup_acquire(9)bpf_cgroup_release(9)bpf_cgroup_ancestor(9)bpf_cgroup_from_id(9)bpf_task_under_cgroup(9)bpf_task_get_cgroup1(9)bpf_task_from_pid(9)bpf_task_from_vpid(9)bpf_dynptr_slice(9)bpf_dynptr_slice_rdwr(9)bpf_dynptr_copy(9)bpf_dynptr_memset(9)bpf_iter_bits_new(9)bpf_iter_bits_destroy(9)bpf_copy_from_user_str(9)bpf_copy_from_user_task_str(9)bpf_strcmp(9)bpf_strcasecmp(9)bpf_strnchr(9)bpf_strchr(9)bpf_strchrnul(9)bpf_strrchr(9)bpf_strnlen(9)bpf_strlen(9)bpf_strspn(9)bpf_strcspn(9)bpf_strstr(9)bpf_strcasestr(9)bpf_strnstr(9)bpf_strncasestr(9)bpf_lookup_user_key(9)bpf_lookup_system_key(9)bpf_key_put(9)bpf_verify_pkcs7_signature(9)bpf_task_work_schedule_signal(9)bpf_task_work_schedule_resume(9)bpf_timer_cancel_async(9)
okay that's the whole page, mwah π this one's straight out of ./kernel/bpf, dated October 2026, and it goes by bpf_iter_bits_next(9) β go forth and iterate those bits, bestie πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms