id
stringlengths
4
63
text
stringlengths
153
8.81M
cpuhp_state_add_instance(9)
NAME cpuhp_state_add_instance - Add an instance for a state and invoke startup callback. SYNOPSIS int cpuhp_state_add_instance (enum cpuhp_state state , struct hlist_node *node ); ARGUMENTS state The state for which the instance is installed node The node for this individual state. DESCRIPTION I...
cpuhp_state_add_instance_nocalls(9)
NAME cpuhp_state_add_instance_nocalls - Add an instance for a state without invoking the startup callback. SYNOPSIS int cpuhp_state_add_instance_nocalls (enum cpuhp_state state , struct hlist_node *node ); ARGUMENTS state The state for which the instance is installed node The node for this indivi...
cpuhp_state_add_instance_nocalls_cpuslocked(9)
NAME cpuhp_state_add_instance_nocalls_cpuslocked - Add an instance for a state without invoking the startup callback from a cpus_read_lock() held region. SYNOPSIS int cpuhp_state_add_instance_nocalls_cpuslocked (enum cpuhp_state state , struct hlist_node *node ); ARGUMENTS state The state for which the instance...
cpuhp_state_remove_instance(9)
NAME cpuhp_state_remove_instance - Remove hotplug instance from state and invoke the teardown callback SYNOPSIS int cpuhp_state_remove_instance (enum cpuhp_state state , struct hlist_node *node ); ARGUMENTS state The state from which the instance is removed node The node for this individual state...
cpuhp_state_remove_instance_nocalls(9)
NAME cpuhp_state_remove_instance_nocalls - Remove hotplug instance from state without invoking the teardown callback SYNOPSIS int cpuhp_state_remove_instance_nocalls (enum cpuhp_state state , struct hlist_node *node ); ARGUMENTS state The state from which the instance is removed node The node for...
cpuid(4)
NAME cpuid - x86 CPUID access device DESCRIPTION CPUID provides an interface for querying information about the x86 CPU. This device is accessed by lseek(2) or pread(2) to the appropriate CPUID level and reading in chunks of 16 bytes. A larger read size means multiple reads of consecutive levels. The ...
cpuid_leaf_0x2(9)
NAME cpuid_leaf_0x2 - Return sanitized CPUID(0x2) register output SYNOPSIS void cpuid_leaf_0x2 (union leaf_0x2_regs *regs ); ARGUMENTS regs Output parameter DESCRIPTION Query CPUID(0x2) and store its output in regs. Force set any invalid 1-byte descriptor returned by the hardware to zero (the NULL cache/TL...
cpuidle_add_device_sysfs(9)
NAME cpuidle_add_device_sysfs - adds device specific sysfs attributes SYNOPSIS int cpuidle_add_device_sysfs (struct cpuidle_device *device ); ARGUMENTS device the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state_sysfs(9), cp...
cpuidle_add_driver_sysfs(9)
NAME cpuidle_add_driver_sysfs - adds the driver name sysfs attribute SYNOPSIS int cpuidle_add_driver_sysfs (struct cpuidle_device *dev ); ARGUMENTS dev the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state_sysfs(9), cpuidl...
cpuidle_add_interface(9)
NAME cpuidle_add_interface - add CPU global sysfs attributes SYNOPSIS int cpuidle_add_interface (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_remove_interface(9), cpuidle_add_state_sysfs(9), cpuidle_remove_state_sysfs(9), cpuidle_add_driver_sysfs(9), cpuidle_remov...
cpuidle_add_state_sysfs(9)
NAME cpuidle_add_state_sysfs - adds cpuidle states sysfs attributes SYNOPSIS int cpuidle_add_state_sysfs (struct cpuidle_device *device ); ARGUMENTS device the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_remove_state_sysfs(9), cpu...
cpuidle_add_sysfs(9)
NAME cpuidle_add_sysfs - creates a sysfs instance for the target device SYNOPSIS int cpuidle_add_sysfs (struct cpuidle_device *dev ); ARGUMENTS dev the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state_sysfs(9), cpuidle_re...
cpuidle_cooling_get_cur_state(9)
NAME cpuidle_cooling_get_cur_state - Get the current cooling state SYNOPSIS int cpuidle_cooling_get_cur_state (struct thermal_cooling_device *cdev , unsigned long *state ); ARGUMENTS cdev the thermal cooling device state a pointer to the state DESCRIPTION The function just copies the state valu...
cpuidle_cooling_get_max_state(9)
NAME cpuidle_cooling_get_max_state - Get the maximum state SYNOPSIS int cpuidle_cooling_get_max_state (struct thermal_cooling_device *cdev , unsigned long *state ); ARGUMENTS cdev the thermal cooling device state a pointer to the state variable to be filled DESCRIPTION The function always return...
cpuidle_cooling_register(9)
NAME cpuidle_cooling_register - Idle cooling device initialization function SYNOPSIS void cpuidle_cooling_register (struct cpuidle_driver *drv ); ARGUMENTS drv a cpuidle driver structure pointer DESCRIPTION This function is in charge of creating a cooling device per cpuidle driver and register it to the ther...
cpuidle_cooling_runtime(9)
NAME cpuidle_cooling_runtime - Running time computation SYNOPSIS unsigned int cpuidle_cooling_runtime (unsigned int idle_duration_us , unsigned long state ); ARGUMENTS idle_duration_us CPU idle time to inject in microseconds state a percentile based number DESCRIPTION The running duration is computed f...
cpuidle_cooling_set_cur_state(9)
NAME cpuidle_cooling_set_cur_state - Set the current cooling state SYNOPSIS int cpuidle_cooling_set_cur_state (struct thermal_cooling_device *cdev , unsigned long state ); ARGUMENTS cdev the thermal cooling device state the target state DESCRIPTION The function checks first if we are initiating ...
cpuidle_coupled_allow_idle(9)
NAME cpuidle_coupled_allow_idle - allows cpus to enter a coupled state SYNOPSIS void cpuidle_coupled_allow_idle (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the cpu that is changing state DESCRIPTION Enables coupled cpuidle on a coupled set of cpus. Used to ensure that ...
cpuidle_coupled_clear_pokes(9)
NAME cpuidle_coupled_clear_pokes - spin until the poke interrupt is processed SYNOPSIS int cpuidle_coupled_clear_pokes (int cpu ); ARGUMENTS cpu this cpu DESCRIPTION Turns on interrupts and spins until any outstanding poke interrupts have been processed and the poke bit has been cleared. Other interrup...
cpuidle_coupled_cpus_ready(9)
NAME cpuidle_coupled_cpus_ready - check if all cpus in a coupled set are ready SYNOPSIS bool cpuidle_coupled_cpus_ready (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the current cpu DESCRIPTION Returns true if all cpus coupled to this target state are in the ready loop S...
cpuidle_coupled_cpus_waiting(9)
NAME cpuidle_coupled_cpus_waiting - check if all cpus in a coupled set are waiting SYNOPSIS bool cpuidle_coupled_cpus_waiting (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the current cpu DESCRIPTION Returns true if all cpus coupled to this target state are in the wait lo...
cpuidle_coupled_get_state(9)
NAME cpuidle_coupled_get_state - determine the deepest idle state SYNOPSIS int cpuidle_coupled_get_state (struct cpuidle_device *dev , struct cpuidle_coupled *coupled ); ARGUMENTS dev struct cpuidle_device for this cpu coupled the struct coupled that contains the current cpu DESCRIPTION Returns t...
cpuidle_coupled_no_cpus_ready(9)
NAME cpuidle_coupled_no_cpus_ready - check if no cpus in a coupled set are ready SYNOPSIS int cpuidle_coupled_no_cpus_ready (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the current cpu DESCRIPTION Returns true if all of the cpus in a coupled set are out of the ready loop...
cpuidle_coupled_no_cpus_waiting(9)
NAME cpuidle_coupled_no_cpus_waiting - check if no cpus in coupled set are waiting SYNOPSIS int cpuidle_coupled_no_cpus_waiting (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the current cpu DESCRIPTION Returns true if all of the cpus in a coupled set are out of the waitin...
cpuidle_coupled_parallel_barrier(9)
NAME cpuidle_coupled_parallel_barrier - synchronize all online coupled cpus SYNOPSIS void cpuidle_coupled_parallel_barrier (struct cpuidle_device *dev , atomic_t *a ); ARGUMENTS dev cpuidle_device of the calling cpu a atomic variable to hold the barrier DESCRIPTION No caller to this funct...
cpuidle_coupled_poke(9)
NAME cpuidle_coupled_poke - wake up a cpu that may be waiting SYNOPSIS void cpuidle_coupled_poke (int cpu ); ARGUMENTS cpu target cpu DESCRIPTION Ensures that the target cpu exits it's waiting idle state (if it is in it) and will see updates to waiting_count before it re-enters it's waiting idle state. I...
cpuidle_coupled_poke_others(9)
NAME cpuidle_coupled_poke_others - wake up all other cpus that may be waiting SYNOPSIS void cpuidle_coupled_poke_others (int this_cpu , struct cpuidle_coupled *coupled ); ARGUMENTS this_cpu target cpu coupled the struct coupled that contains the current cpu DESCRIPTION Calls cpuidle_coupled_poke on al...
cpuidle_coupled_prevent_idle(9)
NAME cpuidle_coupled_prevent_idle - prevent cpus from entering a coupled state SYNOPSIS void cpuidle_coupled_prevent_idle (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the cpu that is changing state DESCRIPTION Disables coupled cpuidle on a coupled set of cpus. Used to e...
cpuidle_coupled_register_device(9)
NAME cpuidle_coupled_register_device - register a coupled cpuidle device SYNOPSIS int cpuidle_coupled_register_device (struct cpuidle_device *dev ); ARGUMENTS dev struct cpuidle_device for the current cpu DESCRIPTION Called from cpuidle_register_device to handle coupled idle init. Finds the cpuidle_coupled ...
cpuidle_coupled_set_done(9)
NAME cpuidle_coupled_set_done - mark this cpu as leaving the ready loop SYNOPSIS void cpuidle_coupled_set_done (int cpu , struct cpuidle_coupled *coupled ); ARGUMENTS cpu the current cpu coupled the struct coupled that contains the current cpu DESCRIPTION Marks this cpu as no longer in the ready ...
cpuidle_coupled_set_not_ready(9)
NAME cpuidle_coupled_set_not_ready - mark a cpu as not ready SYNOPSIS int cpuidle_coupled_set_not_ready (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the current cpu DESCRIPTION Decrements the ready counter, unless the ready (and thus the waiting) counter is equal to the...
cpuidle_coupled_set_not_waiting(9)
NAME cpuidle_coupled_set_not_waiting - mark this cpu as leaving the wait loop SYNOPSIS void cpuidle_coupled_set_not_waiting (int cpu , struct cpuidle_coupled *coupled ); ARGUMENTS cpu target cpu coupled the struct coupled that contains the current cpu DESCRIPTION Removes the requested idle state ...
cpuidle_coupled_set_ready(9)
NAME cpuidle_coupled_set_ready - mark a cpu as ready SYNOPSIS void cpuidle_coupled_set_ready (struct cpuidle_coupled *coupled ); ARGUMENTS coupled the struct coupled that contains the current cpu SEE ALSO Kernel file ./drivers/cpuidle/coupled.c Kernel API(9), struct cpuidle_coupled(9), cpuidle_coupled_parallel_...
cpuidle_coupled_set_waiting(9)
NAME cpuidle_coupled_set_waiting - mark this cpu as in the wait loop SYNOPSIS int cpuidle_coupled_set_waiting (int cpu , struct cpuidle_coupled *coupled , int next_state ); ARGUMENTS cpu target cpu coupled the struct coupled that contains the current cpu next_state the index in drv->state...
cpuidle_coupled_state_verify(9)
NAME cpuidle_coupled_state_verify - check if the coupled states are correctly set. SYNOPSIS int cpuidle_coupled_state_verify (struct cpuidle_driver *drv ); ARGUMENTS drv struct cpuidle_driver for the platform DESCRIPTION Returns 0 for valid state values, a negative error code otherwise: * -EINVAL if any coup...
cpuidle_coupled_unregister_device(9)
NAME cpuidle_coupled_unregister_device - unregister a coupled cpuidle device SYNOPSIS void cpuidle_coupled_unregister_device (struct cpuidle_device *dev ); ARGUMENTS dev struct cpuidle_device for the current cpu DESCRIPTION Called from cpuidle_unregister_device to tear down coupled idle. Removes the cpu fro...
cpuidle_disable_device(9)
NAME cpuidle_disable_device - disables idle PM for a CPU SYNOPSIS void cpuidle_disable_device (struct cpuidle_device *dev ); ARGUMENTS dev the CPU DESCRIPTION This function must be called between cpuidle_pause_and_lock and cpuidle_resume_and_unlock when used externally. SEE ALSO Kernel file ./drivers/cpuid...
cpuidle_driver_state_disabled(9)
NAME cpuidle_driver_state_disabled - Disable or enable an idle state SYNOPSIS void cpuidle_driver_state_disabled (struct cpuidle_driver *drv , int idx , bool disable ); ARGUMENTS drv cpuidle driver owning the state idx State index disable Whether or not to disable the state SEE AL...
cpuidle_enable_device(9)
NAME cpuidle_enable_device - enables idle PM for a CPU SYNOPSIS int cpuidle_enable_device (struct cpuidle_device *dev ); ARGUMENTS dev the CPU DESCRIPTION This function must be called between cpuidle_pause_and_lock and cpuidle_resume_and_unlock when used externally. SEE ALSO Kernel file ./drivers/cpuidle/...
cpuidle_enter(9)
NAME cpuidle_enter - enter into the specified idle state SYNOPSIS int cpuidle_enter (struct cpuidle_driver *drv , struct cpuidle_device *dev , int index ); ARGUMENTS drv the cpuidle driver tied with the cpu dev the cpuidle device index the index in the idle state table DESCRIPTI...
cpuidle_enter_s2idle(9)
NAME cpuidle_enter_s2idle - Enter an idle state suitable for suspend-to-idle. SYNOPSIS int cpuidle_enter_s2idle (struct cpuidle_driver *drv , struct cpuidle_device *dev , u64 latency_limit_ns ); ARGUMENTS drv cpuidle driver for the given CPU. dev cpuidle device for the given CPU. laten...
cpuidle_enter_state(9)
NAME cpuidle_enter_state - enter the state and update stats SYNOPSIS noinstr int cpuidle_enter_state (struct cpuidle_device *dev , struct cpuidle_driver *drv , int index ); ARGUMENTS dev cpuidle device for this cpu drv cpuidle driver for this cpu index index into the states table...
cpuidle_enter_state_coupled(9)
NAME cpuidle_enter_state_coupled - attempt to enter a state with coupled cpus SYNOPSIS int cpuidle_enter_state_coupled (struct cpuidle_device *dev , struct cpuidle_driver *drv , int next_state ); ARGUMENTS dev struct cpuidle_device for the current cpu drv struct cpuidle_driver for the platform...
cpuidle_find_deepest_state(9)
NAME cpuidle_find_deepest_state - Find the deepest available idle state. SYNOPSIS int cpuidle_find_deepest_state (struct cpuidle_driver *drv , struct cpuidle_device *dev , u64 latency_limit_ns ); ARGUMENTS drv cpuidle driver for the given CPU. dev cpuidle device for the given CPU. late...
cpuidle_find_governor(9)
NAME cpuidle_find_governor - finds a governor of the specified name SYNOPSIS struct cpuidle_governor * cpuidle_find_governor (const char *str ); ARGUMENTS str the name DESCRIPTION Must be called with cpuidle_lock acquired. SEE ALSO Kernel file ./drivers/cpuidle/governor.c cpuidle_switch_governor(9), cpuidle...
cpuidle_get_cpu_driver(9)
NAME cpuidle_get_cpu_driver - return the driver registered for a CPU. SYNOPSIS struct cpuidle_driver * cpuidle_get_cpu_driver (struct cpuidle_device *dev ); ARGUMENTS dev a valid pointer to a struct cpuidle_device DESCRIPTION Returns a struct cpuidle_driver pointer, or NULL if no driver is registered for the...
cpuidle_get_driver(9)
NAME cpuidle_get_driver - return the driver tied to the current CPU. SYNOPSIS struct cpuidle_driver * cpuidle_get_driver (void ); ARGUMENTS void no arguments DESCRIPTION Returns a struct cpuidle_driver pointer, or NULL if no driver is registered. SEE ALSO Kernel file ./drivers/cpuidle/driver.c __cpuidle_get_...
cpuidle_governor_latency_req(9)
NAME cpuidle_governor_latency_req - Compute a latency constraint for CPU SYNOPSIS s64 cpuidle_governor_latency_req (unsigned int cpu ); ARGUMENTS cpu Target CPU SEE ALSO Kernel file ./drivers/cpuidle/governor.c cpuidle_find_governor(9), cpuidle_switch_governor(9), cpuidle_register_governor(9) April 2026 ...
cpuidle_idle_call(9)
NAME cpuidle_idle_call - the main idle function SYNOPSIS void cpuidle_idle_call (bool stop_tick ); ARGUMENTS stop_tick -- undescribed -- NOTE no locks or semaphores should be used here On architectures that support TIF_POLLING_NRFLAG, is called with polling set, and it returns with polling set. If it ever stops p...
cpuidle_init(9)
NAME cpuidle_init - core initializer SYNOPSIS int cpuidle_init (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2idle(9), cpuidle_enter_state(9), cpuidle_select(9), cpuidle_e...
cpuidle_install_idle_handler(9)
NAME cpuidle_install_idle_handler - installs the cpuidle idle loop handler SYNOPSIS void cpuidle_install_idle_handler (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2idle(9...
cpuidle_pause_and_lock(9)
NAME cpuidle_pause_and_lock - temporarily disables CPUIDLE SYNOPSIS void cpuidle_pause_and_lock (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2idle(9), cpuidle_enter_state...
cpuidle_play_dead(9)
NAME cpuidle_play_dead - cpu off-lining SYNOPSIS int cpuidle_play_dead (void ); ARGUMENTS void no arguments DESCRIPTION Returns in case of an error or no driver SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2idle(9), cpuidle...
cpuidle_poll_time(9)
NAME cpuidle_poll_time - return amount of time to poll for, governors can override dev->poll_limit_ns if necessary SYNOPSIS __cpuidle u64 cpuidle_poll_time (struct cpuidle_driver *drv , struct cpuidle_device *dev ); ARGUMENTS drv the cpuidle driver tied with the cpu dev the cpuidle device SEE...
cpuidle_reflect(9)
NAME cpuidle_reflect - tell the underlying governor what was the state we were in SYNOPSIS void cpuidle_reflect (struct cpuidle_device *dev , int index ); ARGUMENTS dev the cpuidle device index the index in the idle state table SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_de...
cpuidle_register(9)
NAME cpuidle_register - registers the driver and the cpu devices with the coupled_cpus passed as parameter. This function is used for all common initialization pattern there are in the arch specific drivers. The devices is globally defined in this file. SYNOPSIS int cpuidle_register (struct cpuidle_driver *drv , c...
cpuidle_register_device(9)
NAME cpuidle_register_device - registers a CPU's idle PM feature SYNOPSIS int cpuidle_register_device (struct cpuidle_device *dev ); ARGUMENTS dev the cpu SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2idle...
cpuidle_register_driver(9)
NAME cpuidle_register_driver - registers a driver SYNOPSIS int cpuidle_register_driver (struct cpuidle_driver *drv ); ARGUMENTS drv a pointer to a valid struct cpuidle_driver DESCRIPTION Register the driver under a lock to prevent concurrent attempts to [un]register the driver from occurring at the same time...
cpuidle_register_governor(9)
NAME cpuidle_register_governor - registers a governor SYNOPSIS int cpuidle_register_governor (struct cpuidle_governor *gov ); ARGUMENTS gov the governor SEE ALSO Kernel file ./drivers/cpuidle/governor.c cpuidle_find_governor(9), cpuidle_switch_governor(9), cpuidle_governor_latency_req(9) April 2026 ...
cpuidle_remove_device_sysfs(9)
NAME cpuidle_remove_device_sysfs - removes device specific sysfs attributes SYNOPSIS void cpuidle_remove_device_sysfs (struct cpuidle_device *device ); ARGUMENTS device the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state_sy...
cpuidle_remove_driver_sysfs(9)
NAME cpuidle_remove_driver_sysfs - removes the driver name sysfs attribute SYNOPSIS void cpuidle_remove_driver_sysfs (struct cpuidle_device *dev ); ARGUMENTS dev the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state_sysfs(9),...
cpuidle_remove_interface(9)
NAME cpuidle_remove_interface - remove CPU global sysfs attributes SYNOPSIS void cpuidle_remove_interface (struct device *dev ); ARGUMENTS dev the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_add_state_sysfs(9), cpuidle_remove_state_sysfs(9), cpuidle_add_d...
cpuidle_remove_state_sysfs(9)
NAME cpuidle_remove_state_sysfs - removes the cpuidle states sysfs attributes SYNOPSIS void cpuidle_remove_state_sysfs (struct cpuidle_device *device ); ARGUMENTS device the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state...
cpuidle_remove_sysfs(9)
NAME cpuidle_remove_sysfs - deletes a sysfs instance on the target device SYNOPSIS void cpuidle_remove_sysfs (struct cpuidle_device *dev ); ARGUMENTS dev the target device SEE ALSO Kernel file ./drivers/cpuidle/sysfs.c cpuidle_add_interface(9), cpuidle_remove_interface(9), cpuidle_add_state_sysfs(9), cpui...
cpuidle_resume_and_unlock(9)
NAME cpuidle_resume_and_unlock - resumes CPUIDLE operation SYNOPSIS void cpuidle_resume_and_unlock (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2idle(9), cpuidle_enter_st...
cpuidle_select(9)
NAME cpuidle_select - ask the cpuidle framework to choose an idle state SYNOPSIS int cpuidle_select (struct cpuidle_driver *drv , struct cpuidle_device *dev , bool *stop_tick ); ARGUMENTS drv the cpuidle driver dev the cpuidle device stop_tick indication on whether or not to stop the...
cpuidle_setup_broadcast_timer(9)
NAME cpuidle_setup_broadcast_timer - enable/disable the broadcast timer on a cpu SYNOPSIS void cpuidle_setup_broadcast_timer (void *arg ); ARGUMENTS arg a void pointer used to match the SMP cross call API DESCRIPTION If arg is NULL broadcast is disabled otherwise enabled This function is executed per CPU by ...
cpuidle_state_is_coupled(9)
NAME cpuidle_state_is_coupled - check if a state is part of a coupled set SYNOPSIS bool cpuidle_state_is_coupled (struct cpuidle_driver *drv , int state ); ARGUMENTS drv struct cpuidle_driver for the platform state index of the target state in drv->states DESCRIPTION Returns true if the target ...
cpuidle_switch_governor(9)
NAME cpuidle_switch_governor - changes the governor SYNOPSIS int cpuidle_switch_governor (struct cpuidle_governor *gov ); ARGUMENTS gov the new target governor Must be called with cpuidle_lock acquired. SEE ALSO Kernel file ./drivers/cpuidle/governor.c cpuidle_find_governor(9), cpuidle_register_governor(9), ...
cpuidle_uninstall_idle_handler(9)
NAME cpuidle_uninstall_idle_handler - uninstalls the cpuidle idle loop handler SYNOPSIS void cpuidle_uninstall_idle_handler (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_s2...
cpuidle_unregister(9)
NAME cpuidle_unregister - unregister a driver and the devices. This function can be used only if the driver has been previously registered through the cpuidle_register function. SYNOPSIS void cpuidle_unregister (struct cpuidle_driver *drv ); ARGUMENTS drv a valid pointer to a struct cpuidle_driver SEE ALSO K...
cpuidle_unregister_device(9)
NAME cpuidle_unregister_device - unregisters a CPU's idle PM feature SYNOPSIS void cpuidle_unregister_device (struct cpuidle_device *dev ); ARGUMENTS dev the cpu SEE ALSO Kernel file ./drivers/cpuidle/cpuidle.c cpuidle_play_dead(9), cpuidle_use_deepest_state(9), cpuidle_find_deepest_state(9), cpuidle_enter_...
cpuidle_unregister_driver(9)
NAME cpuidle_unregister_driver - unregisters a driver SYNOPSIS void cpuidle_unregister_driver (struct cpuidle_driver *drv ); ARGUMENTS drv a pointer to a valid struct cpuidle_driver DESCRIPTION Unregisters the cpuidle driver under a lock to prevent concurrent attempts to [un]register the driver from occurrin...
cpuidle_use_deepest_state(9)
NAME cpuidle_use_deepest_state - Set/unset governor override mode. SYNOPSIS void cpuidle_use_deepest_state (u64 latency_limit_ns ); ARGUMENTS latency_limit_ns Idle state exit latency limit (or no override if 0). DESCRIPTION If latency_limit_ns is nonzero, set the current CPU to use the deepest idle state with exit l...
cpulist_parse(9)
NAME cpulist_parse - extract a cpumask from a user string of ranges SYNOPSIS int cpulist_parse (const char *buf , struct cpumask *dstp ); ARGUMENTS buf the buffer to extract from dstp the cpumask to set. RETURN -errno, or 0 for success. SEE ALSO Kernel file ./include/linux/cpumask.h cpu...
cpumap_print_bitmask_to_buf(9)
NAME cpumap_print_bitmask_to_buf - copies the cpumask into the buffer as hex values of cpumask SYNOPSIS ssize_t cpumap_print_bitmask_to_buf (char *buf , const struct cpumask *mask , loff_t off , size_t count ); ARGUMENTS buf the buffer to copy into mask the cpumask to copy off i...
cpumap_print_list_to_buf(9)
NAME cpumap_print_list_to_buf - copies the cpumask into the buffer as comma-separated list of cpus SYNOPSIS ssize_t cpumap_print_list_to_buf (char *buf , const struct cpumask *mask , loff_t off , size_t count ); ARGUMENTS buf the buffer to copy into mask the cpumask to copy off ...
cpumap_print_to_pagebuf(9)
NAME cpumap_print_to_pagebuf - copies the cpumask into the buffer either as comma-separated list of cpus or hex values of cpumask SYNOPSIS ssize_t cpumap_print_to_pagebuf (bool list , char *buf , const struct cpumask *mask ); ARGUMENTS list indicates whether the cpumap must be list buf the buff...
cpumask_and(9)
NAME cpumask_and - *dstp = *src1p & *src2p SYNOPSIS bool cpumask_and (struct cpumask *dstp , const struct cpumask *src1p , const struct cpumask *src2p ); ARGUMENTS dstp the cpumask result src1p the first input src2p the second input RETURN false if *dstp is empty, else returns true...
cpumask_andnot(9)
NAME cpumask_andnot - *dstp = *src1p & ~*src2p SYNOPSIS bool cpumask_andnot (struct cpumask *dstp , const struct cpumask *src1p , const struct cpumask *src2p ); ARGUMENTS dstp the cpumask result src1p the first input src2p the second input RETURN false if *dstp is empty, else retur...
cpumask_any(9)
NAME cpumask_any - pick an arbitrary cpu from *srcp SYNOPSIS cpumask_any (srcp ); ARGUMENTS srcp the input cpumask RETURN >= nr_cpu_ids if no cpus set. SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first(9), cpumask_first_zero(9), cpumask_first_and(9), cpumask_first_...
cpumask_any_and(9)
NAME cpumask_any_and - pick an arbitrary cpu from *mask1 & *mask2 SYNOPSIS cpumask_any_and (mask1 , mask2 ); ARGUMENTS mask1 the first input cpumask mask2 the second input cpumask RETURN >= nr_cpu_ids if no cpus set. SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpum...
cpumask_any_and_but(9)
NAME cpumask_any_and_but - pick an arbitrary cpu from *mask1 & *mask2, but not this one. SYNOPSIS unsigned int cpumask_any_and_but (const struct cpumask *mask1 , const struct cpumask *mask2 , int cpu ); ARGUMENTS mask1 the first input cpumask mask2 the second input cpumask cpu the ...
cpumask_any_and_distribute(9)
NAME cpumask_any_and_distribute - Return an arbitrary cpu within src1p & src2p. SYNOPSIS unsigned int cpumask_any_and_distribute (const struct cpumask *src1p , const struct cpumask *src2p ); ARGUMENTS src1p first cpumask for intersection src2p second cpumask for intersection DESCRIPTION Iterated ...
cpumask_any_andnot_but(9)
NAME cpumask_any_andnot_but - pick an arbitrary cpu from *mask1 & ~*mask2, but not this one. SYNOPSIS unsigned int cpumask_any_andnot_but (const struct cpumask *mask1 , const struct cpumask *mask2 , int cpu ); ARGUMENTS mask1 the first input cpumask mask2 the second input cpumask cpu ...
cpumask_any_but(9)
NAME cpumask_any_but - return an arbitrary cpu in a cpumask, but not this one. SYNOPSIS unsigned int cpumask_any_but (const struct cpumask *mask , int cpu ); ARGUMENTS mask the cpumask to search cpu the cpu to ignore. DESCRIPTION Often used to find any cpu but smp_processor_id in a mask. If c...
cpumask_any_distribute(9)
NAME cpumask_any_distribute - Return an arbitrary cpu from srcp SYNOPSIS unsigned int cpumask_any_distribute (const struct cpumask *srcp ); ARGUMENTS srcp cpumask for selection RETURN >= nr_cpu_ids if the intersection is empty. SEE ALSO Kernel file ./lib/cpumask.c alloc_cpumask_var_node(9), alloc_bootmem_cpu...
cpumask_any_housekeeping(9)
NAME cpumask_any_housekeeping - Choose any CPU in @mask, preferring those that aren't marked nohz_full SYNOPSIS unsigned int cpumask_any_housekeeping (const struct cpumask *mask , int exclude_cpu ); ARGUMENTS mask The mask to pick a CPU from. exclude_cpu The CPU to avoid picking. DESCRIPTION Returns ...
cpumask_bits(9)
NAME cpumask_bits - get the bits in a cpumask SYNOPSIS cpumask_bits (maskp ); ARGUMENTS maskp the struct cpumask * DESCRIPTION You should only assume nr_cpu_ids bits of this mask are valid. This is a macro so it's const-correct. SEE ALSO Kernel file ./include/linux/cpumask_types.h April 2026 ...
cpumask_clear(9)
NAME cpumask_clear - clear all cpus (< nr_cpu_ids) in a cpumask SYNOPSIS void cpumask_clear (struct cpumask *dstp ); ARGUMENTS dstp the cpumask pointer SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first(9), cpumask_first_zero(9), cpumask_first_and(9), cpumask_first_a...
cpumask_clear_cpu(9)
NAME cpumask_clear_cpu - clear a cpu in a cpumask SYNOPSIS void cpumask_clear_cpu (int cpu , struct cpumask *dstp ); ARGUMENTS cpu cpu number (< nr_cpu_ids) dstp the cpumask pointer SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first(9), cpumask_first_zer...
cpumask_clear_cpus(9)
NAME cpumask_clear_cpus - clear cpus in a cpumask SYNOPSIS void cpumask_clear_cpus (struct cpumask *dstp , unsigned int cpu , unsigned int ncpus ); ARGUMENTS dstp the cpumask pointer cpu cpu number (< nr_cpu_ids) ncpus number of cpus to clear (< nr_cpu_ids) SEE ALSO Kernel file...
cpumask_copy(9)
NAME cpumask_copy - *dstp = *srcp SYNOPSIS void cpumask_copy (struct cpumask *dstp , const struct cpumask *srcp ); ARGUMENTS dstp the result srcp the input cpumask SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first(9), cpumask_first_zero(9), cpumask_fir...
cpumask_empty(9)
NAME cpumask_empty - *srcp == 0 SYNOPSIS bool cpumask_empty (const struct cpumask *srcp ); ARGUMENTS srcp the cpumask to that all cpus < nr_cpu_ids are clear. RETURN true if srcp is empty (has no bits set), else false SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first(9)...
cpumask_equal(9)
NAME cpumask_equal - *src1p == *src2p SYNOPSIS bool cpumask_equal (const struct cpumask *src1p , const struct cpumask *src2p ); ARGUMENTS src1p the first input src2p the second input RETURN true if the cpumasks are equal, false if not SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_...
cpumask_first(9)
NAME cpumask_first - get the first cpu in a cpumask SYNOPSIS unsigned int cpumask_first (const struct cpumask *srcp ); ARGUMENTS srcp the cpumask pointer RETURN >= nr_cpu_ids if no cpus set. SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first_zero(9), cpumask_first_and(9),...
cpumask_first_and(9)
NAME cpumask_first_and - return the first cpu from *srcp1 & *srcp2 SYNOPSIS unsigned int cpumask_first_and (const struct cpumask *srcp1 , const struct cpumask *srcp2 ); ARGUMENTS srcp1 the first input srcp2 the second input RETURN >= nr_cpu_ids if no cpus set in both. See also cpumask_next_and. ...
cpumask_first_and_and(9)
NAME cpumask_first_and_and - return the first cpu from *srcp1 & *srcp2 & *srcp3 SYNOPSIS unsigned int cpumask_first_and_and (const struct cpumask *srcp1 , const struct cpumask *srcp2 , const struct cpumask *srcp3 ); ARGUMENTS srcp1 the first input srcp2 the second input srcp3 the thi...
cpumask_first_andnot(9)
NAME cpumask_first_andnot - return the first cpu from *srcp1 & ~*srcp2 SYNOPSIS unsigned int cpumask_first_andnot (const struct cpumask *srcp1 , const struct cpumask *srcp2 ); ARGUMENTS srcp1 the first input srcp2 the second input RETURN >= nr_cpu_ids if no such cpu found. SEE ALSO Kernel file...
cpumask_first_zero(9)
NAME cpumask_first_zero - get the first unset cpu in a cpumask SYNOPSIS unsigned int cpumask_first_zero (const struct cpumask *srcp ); ARGUMENTS srcp the cpumask pointer RETURN >= nr_cpu_ids if all cpus are set. SEE ALSO Kernel file ./include/linux/cpumask.h cpumask_pr_args(9), cpumask_first(9), cp...