id
stringlengths
4
63
text
stringlengths
153
8.81M
bnxt_qplib_rcfw_send_message(9)
NAME bnxt_qplib_rcfw_send_message - qplib interface to send and complete rcfw command. SYNOPSIS int bnxt_qplib_rcfw_send_message (struct bnxt_qplib_rcfw *rcfw , struct bnxt_qplib_cmdqmsg *msg ); ARGUMENTS rcfw rcfw channel instance of rdev msg qplib message internal DESCRIPTION Driver interac...
bnxt_re_is_fw_stalled(9)
NAME bnxt_re_is_fw_stalled - Check firmware health SYNOPSIS int bnxt_re_is_fw_stalled (struct bnxt_qplib_rcfw *rcfw , u16 cookie ); ARGUMENTS rcfw rcfw channel instance of rdev cookie cookie to track the command DESCRIPTION If firmware has not responded any rcfw command within rcfw->max_timeout, ...
board_added(9)
NAME board_added - Called after a board has been added to the system. SYNOPSIS int board_added (struct slot *p_slot ); ARGUMENTS p_slot target slot DESCRIPTION Turns power on for the board. Configures board. SEE ALSO Kernel file ./drivers/pci/hotplug/shpchp_ctrl.c remove_board(9), shpchp_pushbutton_thread(9) ...
board_assembly_show(9)
NAME board_assembly_show - board assembly name SYNOPSIS ssize_t board_assembly_show (struct device *cdev , struct device_attribute *attr , char *buf ); ARGUMENTS cdev pointer to embedded class device attr ? buf the buffer returned DESCRIPTION A sysfs 'read-only' shost attribute....
board_name_show(9)
NAME board_name_show - board name SYNOPSIS ssize_t board_name_show (struct device *cdev , struct device_attribute *attr , char *buf ); ARGUMENTS cdev pointer to embedded class device attr ? buf the buffer returned DESCRIPTION A sysfs 'read-only' shost attribute. SEE ALSO Kernel...
board_replaced(9)
NAME board_replaced - Called after a board has been replaced in the system. SYNOPSIS u32 board_replaced (struct pci_func *func , struct controller *ctrl ); ARGUMENTS func PCI device/function information ctrl hotplug controller DESCRIPTION This is only used if we don't have resources for hot add...
board_tracer_show(9)
NAME board_tracer_show - board tracer number SYNOPSIS ssize_t board_tracer_show (struct device *cdev , struct device_attribute *attr , char *buf ); ARGUMENTS cdev pointer to embedded class device attr ? buf the buffer returned DESCRIPTION A sysfs 'read-only' shost attribute. SE...
bond_3ad_adapter_speed_duplex_changed(9)
NAME bond_3ad_adapter_speed_duplex_changed - handle a slave's speed / duplex change indication SYNOPSIS void bond_3ad_adapter_speed_duplex_changed (struct slave *slave ); ARGUMENTS slave slave struct to work on DESCRIPTION Handle reselection of aggregator (if needed) for this port. SEE ALSO Kernel file ./...
bond_3ad_bind_slave(9)
NAME bond_3ad_bind_slave - initialize a slave's port SYNOPSIS void bond_3ad_bind_slave (struct slave *slave ); ARGUMENTS slave slave struct to work on RETURN 0 on success < 0 on error SEE ALSO Kernel file ./drivers/net/bonding/bond_3ad.c __get_bond_by_port(9), __get_first_agg(9), __agg_has_partner(9...
bond_3ad_handle_link_change(9)
NAME bond_3ad_handle_link_change - handle a slave's link status change indication SYNOPSIS void bond_3ad_handle_link_change (struct slave *slave , char link ); ARGUMENTS slave slave struct to work on link whether the link is now up or down DESCRIPTION Handle reselection of aggregator (if needed)...
bond_3ad_initialize(9)
NAME bond_3ad_initialize - initialize a bond's 802.3ad parameters and structures SYNOPSIS void bond_3ad_initialize (struct bonding *bond ); ARGUMENTS bond bonding struct to work on DESCRIPTION Can be called only after the mac address of the bond is set. SEE ALSO Kernel file ./drivers/net/bonding/bond_3ad...
bond_3ad_initiate_agg_selection(9)
NAME bond_3ad_initiate_agg_selection - initate aggregator selection SYNOPSIS void bond_3ad_initiate_agg_selection (struct bonding *bond , int timeout ); ARGUMENTS bond bonding struct timeout timeout value to set DESCRIPTION Set the aggregation selection timer, to initiate an agg selection in the v...
bond_3ad_rx_indication(9)
NAME bond_3ad_rx_indication - handle a received frame SYNOPSIS int bond_3ad_rx_indication (struct lacpdu *lacpdu , struct slave *slave ); ARGUMENTS lacpdu received lacpdu slave slave struct to work on DESCRIPTION It is assumed that frames that were sent on this NIC don't returned as new received f...
bond_3ad_set_carrier(9)
NAME bond_3ad_set_carrier - set link state for bonding master SYNOPSIS int bond_3ad_set_carrier (struct bonding *bond ); ARGUMENTS bond bonding structure DESCRIPTION if we have an active aggregator, we're up, if not, we're down. Presumes that we cannot have an active aggregator if there are no slaves wit...
bond_3ad_state_machine_handler(9)
NAME bond_3ad_state_machine_handler - handle state machines timeout SYNOPSIS void bond_3ad_state_machine_handler (struct work_struct *work ); ARGUMENTS work work context to fetch bonding struct to work on from DESCRIPTION The state machine handling concept in this module is to check every tick which state ma...
bond_3ad_unbind_slave(9)
NAME bond_3ad_unbind_slave - deinitialize a slave's port SYNOPSIS void bond_3ad_unbind_slave (struct slave *slave ); ARGUMENTS slave slave struct to work on DESCRIPTION Search for the aggregator that is related to this port, remove the aggregator and assign another aggregator for other port related to it (if a...
bond_3ad_update_ad_actor_settings(9)
NAME bond_3ad_update_ad_actor_settings - reflect change of actor settings to ports SYNOPSIS void bond_3ad_update_ad_actor_settings (struct bonding *bond ); ARGUMENTS bond bonding struct to work on DESCRIPTION If an ad_actor setting gets changed we need to update the individual port settings so the bond device...
bond_3ad_update_lacp_active(9)
NAME bond_3ad_update_lacp_active - change the lacp active SYNOPSIS void bond_3ad_update_lacp_active (struct bonding *bond ); ARGUMENTS bond bonding struct DESCRIPTION Update actor_oper_port_state when lacp_active is modified. SEE ALSO Kernel file ./drivers/net/bonding/bond_3ad.c __get_bond_by_port(9), ...
bond_3ad_update_lacp_rate(9)
NAME bond_3ad_update_lacp_rate - change the lacp rate SYNOPSIS void bond_3ad_update_lacp_rate (struct bonding *bond ); ARGUMENTS bond bonding struct DESCRIPTION When modify lacp_rate parameter via sysfs, update actor_oper_port_state of each port. Hold bond->mode_lock, so we can modify port->actor_oper_port_s...
bond_advance_esn_state(9)
NAME bond_advance_esn_state - ESN support for IPSec HW offload SYNOPSIS void bond_advance_esn_state (struct xfrm_state *xs ); ARGUMENTS xs pointer to transformer state struct SEE ALSO Kernel file ./drivers/net/bonding/bond_main.c bond_dev_queue_xmit(9), bond_vlan_rx_add_vid(9), bond_vlan_rx_kill_vid...
bond_agg_timer_advance(9)
NAME bond_agg_timer_advance - advance agg_select_timer SYNOPSIS bool bond_agg_timer_advance (struct bonding *bond ); ARGUMENTS bond bonding structure DESCRIPTION Return true when agg_select_timer reaches 0. SEE ALSO Kernel file ./drivers/net/bonding/bond_3ad.c __get_bond_by_port(9), __get_first_agg(9...
bond_alb_handle_active_change(9)
NAME bond_alb_handle_active_change - assign new curr_active_slave SYNOPSIS void bond_alb_handle_active_change (struct bonding *bond , struct slave *new_slave ); ARGUMENTS bond our bonding struct new_slave new slave to assign DESCRIPTION Set the bond->curr_active_slave to new_slave and handle mac add...
bond_change_active_slave(9)
NAME bond_change_active_slave - change the active slave into the specified one SYNOPSIS void bond_change_active_slave (struct bonding *bond , struct slave *new_active ); ARGUMENTS bond our bonding struct new_active the new slave to make the active one DESCRIPTION Set the new slave to the bond's set...
bond_choose_primary_or_current(9)
NAME bond_choose_primary_or_current - select the primary or high priority slave SYNOPSIS struct slave * bond_choose_primary_or_current (struct bonding *bond ); ARGUMENTS bond our bonding struct DESCRIPTION - Check if there is a primary link. If the primary link was set and is up, go on and do link reselection...
bond_dev_queue_xmit(9)
NAME bond_dev_queue_xmit - Prepare skb for xmit. SYNOPSIS netdev_tx_t bond_dev_queue_xmit (struct bonding *bond , struct sk_buff *skb , struct net_device *slave_dev ); ARGUMENTS bond bond device that got this skb for tx. skb hw accel VLAN tagged skb to transmit slave_dev slave that is...
bond_find_best_slave(9)
NAME bond_find_best_slave - select the best available slave to be the active one SYNOPSIS struct slave * bond_find_best_slave (struct bonding *bond ); ARGUMENTS bond our bonding struct SEE ALSO Kernel file ./drivers/net/bonding/bond_main.c bond_dev_queue_xmit(9), bond_vlan_rx_add_vid(9), bond_vlan_rx_kill_...
bond_for_each_slave(9)
NAME bond_for_each_slave - iterate over all slaves SYNOPSIS bond_for_each_slave (bond , pos , iter ); ARGUMENTS bond the bond holding this list pos current slave iter list_head * iterator DESCRIPTION Caller must hold RTNL SEE ALSO Kernel file ./include/net/bonding.h April 2026...
bond_get_slave_by_id(9)
NAME bond_get_slave_by_id - get xmit slave with slave_id SYNOPSIS struct slave * bond_get_slave_by_id (struct bonding *bond , int slave_id ); ARGUMENTS bond bonding device that is transmitting slave_id slave id up to slave_cnt-1 through which to transmit DESCRIPTION This function tries to get slave...
bond_ipsec_add_sa(9)
NAME bond_ipsec_add_sa - program device with a security association SYNOPSIS int bond_ipsec_add_sa (struct net_device *bond_dev , struct xfrm_state *xs , struct netlink_ext_ack *extack ); ARGUMENTS bond_dev pointer to the bond net device xs pointer to transformer state struct extack e...
bond_ipsec_del_sa(9)
NAME bond_ipsec_del_sa - clear out this specific SA SYNOPSIS void bond_ipsec_del_sa (struct net_device *bond_dev , struct xfrm_state *xs ); ARGUMENTS bond_dev pointer to the bond net device xs pointer to transformer state struct SEE ALSO Kernel file ./drivers/net/bonding/bond_main.c bond_dev_q...
bond_ipsec_dev(9)
NAME bond_ipsec_dev - Get active device for IPsec offload SYNOPSIS struct net_device * bond_ipsec_dev (struct xfrm_state *xs ); ARGUMENTS xs pointer to transformer state struct CONTEXT caller must hold rcu_read_lock. RETURN the device for ipsec offload, or NULL if not exist. SEE ALSO Kernel file ./drive...
bond_ipsec_offload_ok(9)
NAME bond_ipsec_offload_ok - can this packet use the xfrm hw offload SYNOPSIS bool bond_ipsec_offload_ok (struct sk_buff *skb , struct xfrm_state *xs ); ARGUMENTS skb current data packet xs pointer to transformer state struct SEE ALSO Kernel file ./drivers/net/bonding/bond_main.c bond_d...
bond_opt_get(9)
NAME bond_opt_get - get a pointer to an option SYNOPSIS const struct bond_option * bond_opt_get (unsigned int option ); ARGUMENTS option option for which to return a pointer DESCRIPTION This function checks if option is valid and if so returns a pointer to its entry in the bond_opts[] option array. SEE ALSO Ke...
bond_opt_parse(9)
NAME bond_opt_parse - parse option value SYNOPSIS const struct bond_opt_value * bond_opt_parse (const struct bond_option *opt , struct bond_opt_value *val ); ARGUMENTS opt the option to parse against val value to parse DESCRIPTION This function tries to extract the value from val and che...
bond_opt_tryset_rtnl(9)
NAME bond_opt_tryset_rtnl - try to acquire rtnl and call __bond_opt_set SYNOPSIS int bond_opt_tryset_rtnl (struct bonding *bond , unsigned int option , char *buf ); ARGUMENTS bond target bond device option option to set buf value to set it to DESCRIPTION This function tries to acq...
bond_rr_gen_slave_id(9)
NAME bond_rr_gen_slave_id - generate slave id based on packets_per_slave SYNOPSIS u32 bond_rr_gen_slave_id (struct bonding *bond ); ARGUMENTS bond bonding device to use DESCRIPTION Based on the value of the bonding device's packets_per_slave parameter this function generates a slave id, which is usually used ...
bond_select_active_slave(9)
NAME bond_select_active_slave - select a new active slave, if needed SYNOPSIS void bond_select_active_slave (struct bonding *bond ); ARGUMENTS bond our bonding struct DESCRIPTION This functions should be called when one of the following occurs: - The old curr_active_slave has been released or lost its link....
bond_set_dev_addr(9)
NAME bond_set_dev_addr - clone slave's address to bond SYNOPSIS int bond_set_dev_addr (struct net_device *bond_dev , struct net_device *slave_dev ); ARGUMENTS bond_dev bond net device slave_dev slave net device DESCRIPTION Should be called with RTNL held. SEE ALSO Kernel file ./drivers/net/bonding/bo...
bond_sk_hash_l34(9)
NAME bond_sk_hash_l34 - generate a hash value based on the socket's L3 and L4 fields SYNOPSIS u32 bond_sk_hash_l34 (struct sock *sk ); ARGUMENTS sk socket to use for headers DESCRIPTION This function will extract the necessary field from the socket and use them to generate a hash based on the LAYER34 xmit_p...
bond_vlan_rx_add_vid(9)
NAME bond_vlan_rx_add_vid - Propagates adding an id to slaves SYNOPSIS int bond_vlan_rx_add_vid (struct net_device *bond_dev , __be16 proto , u16 vid ); ARGUMENTS bond_dev bonding net device that got called proto network protocol ID vid vlan id being added SEE ALSO Kernel file ./d...
bond_vlan_rx_kill_vid(9)
NAME bond_vlan_rx_kill_vid - Propagates deleting an id to slaves SYNOPSIS int bond_vlan_rx_kill_vid (struct net_device *bond_dev , __be16 proto , u16 vid ); ARGUMENTS bond_dev bonding net device that got called proto network protocol ID vid vlan id being removed SEE ALSO Kernel fil...
bond_xfrm_update_stats(9)
NAME bond_xfrm_update_stats - Update xfrm state SYNOPSIS void bond_xfrm_update_stats (struct xfrm_state *xs ); ARGUMENTS xs pointer to transformer state struct SEE ALSO Kernel file ./drivers/net/bonding/bond_main.c bond_dev_queue_xmit(9), bond_vlan_rx_add_vid(9), bond_vlan_rx_kill_vid(9), bond_ipsec_dev(...
bond_xmit_hash(9)
NAME bond_xmit_hash - generate a hash value based on the xmit policy SYNOPSIS u32 bond_xmit_hash (struct bonding *bond , struct sk_buff *skb ); ARGUMENTS bond bonding device skb buffer to use for headers DESCRIPTION This function will extract the necessary headers from the skb buffer and use t...
bond_xmit_hash_xdp(9)
NAME bond_xmit_hash_xdp - generate a hash value based on the xmit policy SYNOPSIS u32 bond_xmit_hash_xdp (struct bonding *bond , struct xdp_buff *xdp ); ARGUMENTS bond bonding device xdp buffer to use for headers DESCRIPTION The XDP variant of bond_xmit_hash. SEE ALSO Kernel file ./drivers/...
bool.3x(3)
NAME bool, chtype, cchar_t, attr_t, SCREEN, WINDOW, TRUE, FALSE, ERR, OK, curscr, newscr, stdscr, COLORS, COLOR_PAIRS, COLS, LINES, ESCDELAY, TABSIZE - curses data types, constants, and global variables SYNOPSIS #include <ncursesw/curses.h> /* data types */ typedef /* ... */ bool; typedef /* ... ...
boolcodes.3x(3)
NAME SP, acs_map, boolcodes, boolfnames, boolnames, cur_term, numcodes, numfnames, numnames, strcodes, strfnames, strnames, ttytype - terminfo global variables SYNOPSIS #include <ncursesw/curses.h> #include <term.h> chtype acs_map[]; SCREEN * SP; TERMINAL * cur_term; char ttytype[]; ...
boolfnames.3x(3)
NAME SP, acs_map, boolcodes, boolfnames, boolnames, cur_term, numcodes, numfnames, numnames, strcodes, strfnames, strnames, ttytype - terminfo global variables SYNOPSIS #include <ncursesw/curses.h> #include <term.h> chtype acs_map[]; SCREEN * SP; TERMINAL * cur_term; char ttytype[]; ...
boolnames.3x(3)
NAME SP, acs_map, boolcodes, boolfnames, boolnames, cur_term, numcodes, numfnames, numnames, strcodes, strfnames, strnames, ttytype - terminfo global variables SYNOPSIS #include <ncursesw/curses.h> #include <term.h> chtype acs_map[]; SCREEN * SP; TERMINAL * cur_term; char ttytype[]; ...
boot(7)
NAME boot - System bootup process based on UNIX System V Release 4 DESCRIPTION The bootup process (or "boot sequence") varies in details among systems, but can be roughly divided into phases controlled by the following components: (1) hardware (2) operating system (OS) loader (3) kernel ...
boot_kstrtoul(9)
NAME boot_kstrtoul - convert a string to an unsigned long SYNOPSIS int boot_kstrtoul (const char *s , unsigned int base , unsigned long *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may ...
boot_override_clock(9)
NAME boot_override_clock - Compatibility layer for deprecated boot option SYNOPSIS int boot_override_clock (char* str ); ARGUMENTS str override name DESCRIPTION DEPRECATED! Takes a clock= boot argument and uses it as the clocksource override name SEE ALSO Kernel file ./kernel/time/clocksource.c clocks_ca...
boot_override_clocksource(9)
NAME boot_override_clocksource - boot clock override SYNOPSIS int boot_override_clocksource (char* str ); ARGUMENTS str override name DESCRIPTION Takes a clocksource= boot argument and uses it as the clocksource override name. SEE ALSO Kernel file ./kernel/time/clocksource.c clocks_calc_mult_shift(9), c...
bootctl(1)
NAME bootctl - Control EFI firmware boot settings and manage boot loader SYNOPSIS bootctl [OPTIONS...] {COMMAND} DESCRIPTION bootctl can check the EFI firmware and boot loader status, list and manage available boot loaders and boot loader entries, and install, update, or remove the systemd-boot(7) boot loader...
bootflag_show(9)
NAME bootflag_show - Get function for sysfs attribute bootflag SYNOPSIS ssize_t bootflag_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev the struct device attr device attributes buf buffer where data will be returned SEE ALSO Kernel file ...
bootflag_store(9)
NAME bootflag_store - Set function for sysfs attribute bootflag SYNOPSIS ssize_t bootflag_store (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev the struct device attr device attributes buf buffer that contains new attribute v...
bootparam(7)
NAME bootparam - introduction to boot time parameters of the Linux kernel DESCRIPTION The Linux kernel accepts certain 'command-line options' or 'boot time parameters' at the moment it is started. In general, this is used to supply the kernel with information about hardware parameters that the kernel would not b...
boottime_show(9)
NAME boottime_show - Get function for sysfs attribute boottime SYNOPSIS ssize_t boottime_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev the struct device attr device attributes buf buffer where data will be returned SEE ALSO Kernel file ...
boottime_store(9)
NAME boottime_store - Set function for sysfs attribute boottime SYNOPSIS ssize_t boottime_store (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev the struct device attr device attributes buf buffer that contains new attribute v...
bootup(7)
NAME bootup - System bootup process DESCRIPTION A number of different components are involved in the boot of a Linux system. Immediately after power-up, the system firmware will do minimal hardware initialization, and hand control over to a boot loader (e.g. systemd- boot(7) or GRUB[1]) stored on a persistent storage...
border.3x(3)
NAME border, wborder, box, hline, whline, vline, wvline, mvhline, mvwhline, mvvline, mvwvline - draw borders and lines in a curses window of characters SYNOPSIS #include <ncursesw/curses.h> int border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br); ...
border_set.3x(3)
NAME border_set, wborder_set, box_set, hline_set, whline_set, mvhline_set, mvwhline_set, vline_set, wvline_set, mvvline_set, mvwvline_set - draw borders and lines in a curses window of wide characters SYNOPSIS #include <ncursesw/curses.h> int border_set( const cchar_t *ls, const cchar_t *rs, ...
borrow_pbn_lock_from_pool(9)
NAME borrow_pbn_lock_from_pool - Borrow a PBN lock from the pool and initialize it with the provided type. SYNOPSIS int borrow_pbn_lock_from_pool (struct pbn_lock_pool *pool , enum pbn_lock_type type , struct pbn_lock **lock_ptr ); ARGUMENTS pool The pool from which to borrow. type The type with...
bos_desc(9)
NAME bos_desc - prepares the BOS descriptor. SYNOPSIS int bos_desc (struct usb_composite_dev *cdev ); ARGUMENTS cdev pointer to usb_composite device to generate the bos descriptor for DESCRIPTION This function generates the BOS (Binary Device Object) descriptor and its device capabilities descriptors. The BOS...
bottom_panel.3x(3)
NAME panel - panel stack extension for curses SYNOPSIS #include <panel.h> PANEL *new_panel(WINDOW *win); int bottom_panel(PANEL *pan); int top_panel(PANEL *pan); int show_panel(PANEL *pan); void update_panels(void); int hide_panel(PANEL *pan); WINDOW *panel_window(co...
box.3x(3)
NAME border, wborder, box, hline, whline, vline, wvline, mvhline, mvwhline, mvvline, mvwvline - draw borders and lines in a curses window of characters SYNOPSIS #include <ncursesw/curses.h> int border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br); ...
box_set.3x(3)
NAME border_set, wborder_set, box_set, hline_set, whline_set, mvhline_set, mvwhline_set, vline_set, wvline_set, mvvline_set, mvwvline_set - draw borders and lines in a curses window of wide characters SYNOPSIS #include <ncursesw/curses.h> int border_set( const cchar_t *ls, const cchar_t *rs, ...
bpf(2)
NAME bpf - perform a command on an extended BPF map or program SYNOPSIS #include <linux/bpf.h> int bpf(int cmd, union bpf_attr *attr, unsigned int size); DESCRIPTION The bpf() system call performs a range of operations related to extended Berkeley Packet Filters. Extended BPF (or eBPF) is similar to the ...
bpf-helpers(7)
NAME BPF-HELPERS - list of eBPF helper functions DESCRIPTION The extended Berkeley Packet Filter (eBPF) subsystem consists in programs written in a pseudo-assembly language, then attached to one of the several kernel hooks and run in reaction of specific events. This framework dif‐ fers from the older, "classic" BPF...
bpf_cgroup_acquire(9)
NAME bpf_cgroup_acquire - Acquire a reference to a cgroup. A cgroup acquired by this kfunc which is not stored in a map as a kptr, must be released by calling bpf_cgroup_release(). SYNOPSIS __bpf_kfunc struct cgroup * bpf_cgroup_acquire (struct cgroup *cgrp ); ARGUMENTS cgrp The cgroup on which a reference is ...
bpf_cgroup_ancestor(9)
NAME bpf_cgroup_ancestor - Perform a lookup on an entry in a cgroup's ancestor array. A cgroup returned by this kfunc which is not subsequently stored in a map, must be released by calling bpf_cgroup_release(). SYNOPSIS __bpf_kfunc struct cgroup * bpf_cgroup_ancestor (struct cgroup *cgrp , int level ); ARGUMENTS cgrp...
bpf_cgroup_from_id(9)
NAME bpf_cgroup_from_id - Find a cgroup from its ID. A cgroup returned by this kfunc which is not subsequently stored in a map, must be released by calling bpf_cgroup_release(). SYNOPSIS __bpf_kfunc struct cgroup * bpf_cgroup_from_id (u64 cgid ); ARGUMENTS cgid cgroup id. SEE ALSO Kernel file ./kernel/bpf/h...
bpf_cgroup_read_xattr(9)
NAME bpf_cgroup_read_xattr - read xattr of a cgroup's node in cgroupfs SYNOPSIS __bpf_kfunc int bpf_cgroup_read_xattr (struct cgroup *cgroup , const char *name__str , struct bpf_dynptr *value_p ); ARGUMENTS cgroup cgroup to get xattr from name__str name of the xattr value_p output buffer of...
bpf_cgroup_release(9)
NAME bpf_cgroup_release - Release the reference acquired on a cgroup. If this kfunc is invoked in an RCU read region, the cgroup is guaranteed to not be freed until the current grace period has ended, even if its refcount drops to 0. SYNOPSIS __bpf_kfunc void bpf_cgroup_release (struct cgroup *cgrp ); ARGUMENTS ...
bpf_check_classic(9)
NAME bpf_check_classic - verify socket filter code SYNOPSIS int bpf_check_classic (const struct sock_filter *filter , unsigned int flen ); ARGUMENTS filter filter to verify flen length of filter DESCRIPTION Check the user's filter code. If we let some ugly filter code slip through kaboom! The f...
bpf_convert_filter(9)
NAME bpf_convert_filter - convert filter program SYNOPSIS int bpf_convert_filter (struct sock_filter *prog , int len , struct bpf_prog *new_prog , int *new_len , bool *seen_ld_abs ); ARGUMENTS prog the user passed filter program len the length of the user passed filter program new_prog ...
bpf_copy_from_user_str(9)
NAME bpf_copy_from_user_str - Copy a string from an unsafe user address SYNOPSIS __bpf_kfunc int bpf_copy_from_user_str (void *dst , u32 dst__sz , const void __user *unsafe_ptr__ign , u64 flags ); ARGUMENTS dst Destination address, in kernel space. This buffer must be at least dst__sz bytes long. dst...
bpf_copy_from_user_task_str(9)
NAME bpf_copy_from_user_task_str - Copy a string from an task's address space SYNOPSIS __bpf_kfunc int bpf_copy_from_user_task_str (void *dst , u32 dst__sz , const void __user *unsafe_ptr__ign , struct task_struct *tsk , u64 flags ); ARGUMENTS dst Destination address, in kernel space. This buffer must be at ...
bpf_cpumask_acquire(9)
NAME bpf_cpumask_acquire - Acquire a reference to a BPF cpumask. SYNOPSIS __bpf_kfunc struct bpf_cpumask * bpf_cpumask_acquire (struct bpf_cpumask *cpumask ); ARGUMENTS cpumask The BPF cpumask being acquired. The cpumask must be a trusted pointer. DESCRIPTION Acquires a reference to a BPF cpumask. The cpumask re...
bpf_cpumask_and(9)
NAME bpf_cpumask_and - AND two cpumasks and store the result. SYNOPSIS __bpf_kfunc bool bpf_cpumask_and (struct bpf_cpumask *dst , const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS dst The BPF cpumask where the result is being stored. src1 The first input. src2 ...
bpf_cpumask_any_and_distribute(9)
NAME bpf_cpumask_any_and_distribute - Return a random set CPU from the AND of two cpumasks. SYNOPSIS __bpf_kfunc u32 bpf_cpumask_any_and_distribute (const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS src1 The first cpumask. src2 The second cpumask. RETURN * A random set bit wi...
bpf_cpumask_any_distribute(9)
NAME bpf_cpumask_any_distribute - Return a random set CPU from a cpumask. SYNOPSIS __bpf_kfunc u32 bpf_cpumask_any_distribute (const struct cpumask *cpumask ); ARGUMENTS cpumask The cpumask being queried. RETURN * A random set bit within [0, num_cpus) if at least one bit is set. * >= num_cpus if no bit is set. ...
bpf_cpumask_clear(9)
NAME bpf_cpumask_clear - Clear all of the bits in a BPF cpumask. SYNOPSIS __bpf_kfunc void bpf_cpumask_clear (struct bpf_cpumask *cpumask ); ARGUMENTS cpumask The BPF cpumask being cleared. SEE ALSO Kernel file ./kernel/bpf/cpumask.c struct bpf_cpumask(9), bpf_cpumask_create(9), bpf_cpumask_acquire(9...
bpf_cpumask_clear_cpu(9)
NAME bpf_cpumask_clear_cpu - Clear a bit for a CPU in a BPF cpumask. SYNOPSIS __bpf_kfunc void bpf_cpumask_clear_cpu (u32 cpu , struct bpf_cpumask *cpumask ); ARGUMENTS cpu The CPU to be cleared from the cpumask. cpumask The BPF cpumask in which a bit is being cleared. SEE ALSO Kernel file ./...
bpf_cpumask_copy(9)
NAME bpf_cpumask_copy - Copy the contents of a cpumask into a BPF cpumask. SYNOPSIS __bpf_kfunc void bpf_cpumask_copy (struct bpf_cpumask *dst , const struct cpumask *src ); ARGUMENTS dst The BPF cpumask being copied into. src The cpumask being copied. DESCRIPTION A struct bpf_cpumask pointer...
bpf_cpumask_create(9)
NAME bpf_cpumask_create - Create a mutable BPF cpumask. SYNOPSIS __bpf_kfunc struct bpf_cpumask * bpf_cpumask_create (void ); ARGUMENTS void no arguments DESCRIPTION Allocates a cpumask that can be queried, mutated, acquired, and released by a BPF program. The cpumask returned by this function m...
bpf_cpumask_empty(9)
NAME bpf_cpumask_empty - Check if a cpumask is empty. SYNOPSIS __bpf_kfunc bool bpf_cpumask_empty (const struct cpumask *cpumask ); ARGUMENTS cpumask The cpumask being checked. RETURN * true - None of the bits in cpumask are set. * false - At least one bit in cpumask is set. DESCRIPTION A struct bpf_cpumask...
bpf_cpumask_equal(9)
NAME bpf_cpumask_equal - Check two cpumasks for equality. SYNOPSIS __bpf_kfunc bool bpf_cpumask_equal (const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS src1 The first input. src2 The second input. RETURN * true - src1 and src2 have the same bits set. * false - src1 and s...
bpf_cpumask_first(9)
NAME bpf_cpumask_first - Get the index of the first nonzero bit in the cpumask. SYNOPSIS __bpf_kfunc u32 bpf_cpumask_first (const struct cpumask *cpumask ); ARGUMENTS cpumask The cpumask being queried. DESCRIPTION Find the index of the first nonzero bit of the cpumask. A struct bpf_cpumask pointer may be safely ...
bpf_cpumask_first_and(9)
NAME bpf_cpumask_first_and - Return the index of the first nonzero bit from the AND of two cpumasks. SYNOPSIS __bpf_kfunc u32 bpf_cpumask_first_and (const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS src1 The first cpumask. src2 The second cpumask. DESCRIPTION Find the index o...
bpf_cpumask_first_zero(9)
NAME bpf_cpumask_first_zero - Get the index of the first unset bit in the cpumask. SYNOPSIS __bpf_kfunc u32 bpf_cpumask_first_zero (const struct cpumask *cpumask ); ARGUMENTS cpumask The cpumask being queried. DESCRIPTION Find the index of the first unset bit of the cpumask. A struct bpf_cpumask pointer may be s...
bpf_cpumask_full(9)
NAME bpf_cpumask_full - Check if a cpumask has all bits set. SYNOPSIS __bpf_kfunc bool bpf_cpumask_full (const struct cpumask *cpumask ); ARGUMENTS cpumask The cpumask being checked. RETURN * true - All of the bits in cpumask are set. * false - At least one bit in cpumask is cleared. DESCRIPTION A struct bp...
bpf_cpumask_intersects(9)
NAME bpf_cpumask_intersects - Check two cpumasks for overlap. SYNOPSIS __bpf_kfunc bool bpf_cpumask_intersects (const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS src1 The first input. src2 The second input. RETURN * true - src1 and src2 have at least one of the same bits se...
bpf_cpumask_or(9)
NAME bpf_cpumask_or - OR two cpumasks and store the result. SYNOPSIS __bpf_kfunc void bpf_cpumask_or (struct bpf_cpumask *dst , const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS dst The BPF cpumask where the result is being stored. src1 The first input. src2 Th...
bpf_cpumask_populate(9)
NAME bpf_cpumask_populate - Populate the CPU mask from the contents of a BPF memory region. SYNOPSIS __bpf_kfunc int bpf_cpumask_populate (struct cpumask *cpumask , void *src , size_t src__sz ); ARGUMENTS cpumask The cpumask being populated. src The BPF memory holding the bit pattern. src_...
bpf_cpumask_release(9)
NAME bpf_cpumask_release - Release a previously acquired BPF cpumask. SYNOPSIS __bpf_kfunc void bpf_cpumask_release (struct bpf_cpumask *cpumask ); ARGUMENTS cpumask The cpumask being released. DESCRIPTION Releases a previously acquired reference to a BPF cpumask. When the final reference of the BPF cpumask has ...
bpf_cpumask_set_cpu(9)
NAME bpf_cpumask_set_cpu - Set a bit for a CPU in a BPF cpumask. SYNOPSIS __bpf_kfunc void bpf_cpumask_set_cpu (u32 cpu , struct bpf_cpumask *cpumask ); ARGUMENTS cpu The CPU to be set in the cpumask. cpumask The BPF cpumask in which a bit is being set. SEE ALSO Kernel file ./kernel/bpf/cpuma...
bpf_cpumask_setall(9)
NAME bpf_cpumask_setall - Set all of the bits in a BPF cpumask. SYNOPSIS __bpf_kfunc void bpf_cpumask_setall (struct bpf_cpumask *cpumask ); ARGUMENTS cpumask The BPF cpumask having all of its bits set. SEE ALSO Kernel file ./kernel/bpf/cpumask.c struct bpf_cpumask(9), bpf_cpumask_create(9), bpf_cpum...
bpf_cpumask_subset(9)
NAME bpf_cpumask_subset - Check if a cpumask is a subset of another. SYNOPSIS __bpf_kfunc bool bpf_cpumask_subset (const struct cpumask *src1 , const struct cpumask *src2 ); ARGUMENTS src1 The first cpumask being checked as a subset. src2 The second cpumask being checked as a superset. RETURN *...
bpf_cpumask_test_and_clear_cpu(9)
NAME bpf_cpumask_test_and_clear_cpu - Atomically test and clear a CPU in a BPF cpumask. SYNOPSIS __bpf_kfunc bool bpf_cpumask_test_and_clear_cpu (u32 cpu , struct bpf_cpumask *cpumask ); ARGUMENTS cpu The CPU being cleared and queried for. cpumask The BPF cpumask being cleared and queried for cont...
bpf_cpumask_test_and_set_cpu(9)
NAME bpf_cpumask_test_and_set_cpu - Atomically test and set a CPU in a BPF cpumask. SYNOPSIS __bpf_kfunc bool bpf_cpumask_test_and_set_cpu (u32 cpu , struct bpf_cpumask *cpumask ); ARGUMENTS cpu The CPU being set and queried for. cpumask The BPF cpumask being set and queried for containing a CPU. ...