id
stringlengths
4
63
text
stringlengths
153
8.81M
cgroup_addrm_files(9)
NAME cgroup_addrm_files - add or remove files to a cgroup directory SYNOPSIS int cgroup_addrm_files (struct cgroup_subsys_state *css , struct cgroup *cgrp , struct cftype cfts[] , bool is_add ); ARGUMENTS css the target css cgrp the target cgroup (usually css->cgroup) cfts array ...
cgroup_ancestor(9)
NAME cgroup_ancestor - find ancestor of cgroup SYNOPSIS struct cgroup * cgroup_ancestor (struct cgroup *cgrp , int ancestor_level ); ARGUMENTS cgrp cgroup to find ancestor of ancestor_level level of ancestor to find starting from root DESCRIPTION Find ancestor of cgroup at specifie...
cgroup_apply_control(9)
NAME cgroup_apply_control - apply control mask updates to the subtree SYNOPSIS int cgroup_apply_control (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION subsystems can be enabled and disabled in a subtree using the following steps. 1. Call cgroup_save_control to stash the cur...
cgroup_apply_control_disable(9)
NAME cgroup_apply_control_disable - kill or hide csses according to control SYNOPSIS void cgroup_apply_control_disable (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION Walk cgrp's subtree and kill and hide csses so that they match cgroup_ss_mask and cgroup_visible_mask. A css i...
cgroup_apply_control_enable(9)
NAME cgroup_apply_control_enable - enable or show csses according to control SYNOPSIS int cgroup_apply_control_enable (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION Walk cgrp's subtree and create new csses or make the existing ones visible. A css is created invisible if it's ...
cgroup_attach_lock(9)
NAME cgroup_attach_lock - Lock for ->attach() SYNOPSIS void cgroup_attach_lock (enum cgroup_attach_lock_mode lock_mode , struct task_struct *tsk ); ARGUMENTS lock_mode whether acquire and acquire which rwsem tsk thread group to lock DESCRIPTION cgroup migration sometimes needs to stabilize threadgr...
cgroup_attach_task(9)
NAME cgroup_attach_task - attach a task or a whole threadgroup to a cgroup SYNOPSIS int cgroup_attach_task (struct cgroup *dst_cgrp , struct task_struct *leader , bool threadgroup ); ARGUMENTS dst_cgrp the cgroup to attach to leader the task or the leader of the threadgroup to be attached thre...
cgroup_attach_task_all(9)
NAME cgroup_attach_task_all - attach task 'tsk' to all cgroups of task 'from' SYNOPSIS int cgroup_attach_task_all (struct task_struct *from , struct task_struct *tsk ); ARGUMENTS from attach to all cgroups of a given task tsk the task to be attached RETURN 0 on success or a negative errno code...
cgroup_attach_unlock(9)
NAME cgroup_attach_unlock - Undo cgroup_attach_lock() SYNOPSIS void cgroup_attach_unlock (enum cgroup_attach_lock_mode lock_mode , struct task_struct *tsk ); ARGUMENTS lock_mode whether release and release which rwsem tsk thread group to lock SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_s...
cgroup_bpf_inherit(9)
NAME cgroup_bpf_inherit - inherit effective programs from parent SYNOPSIS int cgroup_bpf_inherit (struct cgroup *cgrp ); ARGUMENTS cgrp the cgroup to modify SEE ALSO Kernel file ./kernel/bpf/cgroup.c cgroup_bpf_release(9), cgroup_bpf_release_fn(9), __cgroup_bpf_attach(9), __cgroup_bpf_replace(9), purge...
cgroup_bpf_release(9)
NAME cgroup_bpf_release - put references of all bpf programs and release all cgroup bpf data SYNOPSIS void cgroup_bpf_release (struct work_struct *work ); ARGUMENTS work work structure embedded into the cgroup to modify SEE ALSO Kernel file ./kernel/bpf/cgroup.c cgroup_bpf_release_fn(9), cgroup_bpf_inheri...
cgroup_bpf_release_fn(9)
NAME cgroup_bpf_release_fn - callback used to schedule releasing of bpf cgroup data SYNOPSIS void cgroup_bpf_release_fn (struct percpu_ref *ref ); ARGUMENTS ref percpu ref counter structure SEE ALSO Kernel file ./kernel/bpf/cgroup.c cgroup_bpf_release(9), cgroup_bpf_inherit(9), __cgroup_bpf_attach(9),...
cgroup_calc_subtree_ss_mask(9)
NAME cgroup_calc_subtree_ss_mask - calculate subtree_ss_mask SYNOPSIS u32 cgroup_calc_subtree_ss_mask (u32 subtree_control , u32 this_ss_mask ); ARGUMENTS subtree_control the new subtree_control mask to consider this_ss_mask available subsystems DESCRIPTION On the default hierarchy, a ...
cgroup_can_fork(9)
NAME cgroup_can_fork - called on a new task before the process is exposed SYNOPSIS int cgroup_can_fork (struct task_struct *child , struct kernel_clone_args *kargs ); ARGUMENTS child the child process kargs the arguments passed to create the child process DESCRIPTION This prepares a new css_se...
cgroup_cancel_fork(9)
NAME cgroup_cancel_fork - called if a fork failed after cgroup_can_fork() SYNOPSIS void cgroup_cancel_fork (struct task_struct *child , struct kernel_clone_args *kargs ); ARGUMENTS child the child process kargs the arguments passed to create the child process DESCRIPTION This calls the cancel_for...
cgroup_css(9)
NAME cgroup_css - obtain a cgroup's css for the specified subsystem SYNOPSIS struct cgroup_subsys_state * cgroup_css (struct cgroup *cgrp , struct cgroup_subsys *ss ); ARGUMENTS cgrp the cgroup of interest ss the subsystem of interest (NULL returns cgrp->self) DESCRIPTION Return cgrp's css (c...
cgroup_css_set_fork(9)
NAME cgroup_css_set_fork - find or create a css_set for a child process SYNOPSIS int cgroup_css_set_fork (struct kernel_clone_args *kargs ); ARGUMENTS kargs the arguments passed to create the child process DESCRIPTION This functions finds or creates a new css_set which the child process will be attached to in ...
cgroup_css_set_put_fork(9)
NAME cgroup_css_set_put_fork - drop references we took during fork SYNOPSIS void cgroup_css_set_put_fork (struct kernel_clone_args *kargs ); ARGUMENTS kargs the arguments passed to create the child process DESCRIPTION Drop references to the prepared css_set and target cgroup if CLONE_INTO_CGROUP was requested....
cgroup_destroy_locked(9)
NAME cgroup_destroy_locked - the first stage of cgroup destruction SYNOPSIS int cgroup_destroy_locked (struct cgroup *cgrp ); ARGUMENTS cgrp cgroup to be destroyed DESCRIPTION css's make use of percpu refcnts whose killing latency shouldn't be exposed to userland and are RCU protected. Also, cgroup core n...
cgroup_drain_dying(9)
NAME cgroup_drain_dying - wait for dying tasks to leave before rmdir SYNOPSIS int cgroup_drain_dying (struct cgroup *cgrp ); ARGUMENTS cgrp the cgroup being removed DESCRIPTION cgroup.procs and cgroup.threads use css_task_iter which filters out PF_EXITING tasks so that userspace doesn't see tasks that h...
cgroup_e_css(9)
NAME cgroup_e_css - obtain a cgroup's effective css for the specified subsystem SYNOPSIS struct cgroup_subsys_state * cgroup_e_css (struct cgroup *cgrp , struct cgroup_subsys *ss ); ARGUMENTS cgrp the cgroup of interest ss the subsystem of interest DESCRIPTION Find and get the effective css o...
cgroup_e_css_by_mask(9)
NAME cgroup_e_css_by_mask - obtain a cgroup's effective css for the specified ss SYNOPSIS struct cgroup_subsys_state * cgroup_e_css_by_mask (struct cgroup *cgrp , struct cgroup_subsys *ss ); ARGUMENTS cgrp the cgroup of interest ss the subsystem of interest (NULL returns cgrp->self) DESCRIPTI...
cgroup_enable_threaded(9)
NAME cgroup_enable_threaded - make @cgrp threaded SYNOPSIS int cgroup_enable_threaded (struct cgroup *cgrp ); ARGUMENTS cgrp the target cgroup DESCRIPTION Called when "threaded" is written to the cgroup.type interface file and tries to make cgrp threaded and join the parent's resource domain. This function i...
cgroup_file_mode(9)
NAME cgroup_file_mode - deduce file mode of a control file SYNOPSIS umode_t cgroup_file_mode (const struct cftype *cft ); ARGUMENTS cft the control file in question DESCRIPTION S_IRUGO for read, S_IWUSR for write. SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgroup_on_dfl(9), cgro...
cgroup_file_notify(9)
NAME cgroup_file_notify - generate a file modified event for a cgroup_file SYNOPSIS void cgroup_file_notify (struct cgroup_file *cfile ); ARGUMENTS cfile target cgroup_file DESCRIPTION cfile must have been obtained by setting cftype->file_offset. SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_ena...
cgroup_file_show(9)
NAME cgroup_file_show - show or hide a hidden cgroup file SYNOPSIS void cgroup_file_show (struct cgroup_file *cfile , bool show ); ARGUMENTS cfile target cgroup_file obtained by setting cftype->file_offset show whether to show or hide SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_e...
cgroup_finalize_control(9)
NAME cgroup_finalize_control - finalize control mask update SYNOPSIS void cgroup_finalize_control (struct cgroup *cgrp , int ret ); ARGUMENTS cgrp root of the target subtree ret the result of the update DESCRIPTION Finalize control mask update. See cgroup_apply_control for more info. SEE ALS...
cgroup_fork(9)
NAME cgroup_fork - initialize cgroup related fields during copy_process() SYNOPSIS void cgroup_fork (struct task_struct *child ); ARGUMENTS child pointer to task_struct of forking parent process. DESCRIPTION A task is associated with the init_css_set until cgroup_post_fork attaches it to the target css_set. S...
cgroup_get_e_css(9)
NAME cgroup_get_e_css - get a cgroup's effective css for the specified subsystem SYNOPSIS struct cgroup_subsys_state * cgroup_get_e_css (struct cgroup *cgrp , struct cgroup_subsys *ss ); ARGUMENTS cgrp the cgroup of interest ss the subsystem of interest DESCRIPTION Find and get the effectiv...
cgroup_get_from_fd(9)
NAME cgroup_get_from_fd - same as cgroup_v1v2_get_from_fd, but only supports cgroup2. SYNOPSIS struct cgroup * cgroup_get_from_fd (int fd ); ARGUMENTS fd fd obtained by open(cgroup2_dir) SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgroup_on_dfl(9), cgroup_css(9), cgroup_e_css_by_...
cgroup_get_from_file(9)
NAME cgroup_get_from_file - same as cgroup_v1v2_get_from_file, but only supports cgroup2. SYNOPSIS struct cgroup * cgroup_get_from_file (struct file *f ); ARGUMENTS f file corresponding to cgroup2_dir SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgroup_on_dfl(9), cgroup_css(9), c...
cgroup_get_from_path(9)
NAME cgroup_get_from_path - lookup and get a cgroup from its default hierarchy path SYNOPSIS struct cgroup * cgroup_get_from_path (const char *path ); ARGUMENTS path path on the default hierarchy DESCRIPTION Find the cgroup at path on the default hierarchy, increment its reference count and return it. Retur...
cgroup_init(9)
NAME cgroup_init - cgroup initialization SYNOPSIS int cgroup_init (void ); ARGUMENTS void no arguments DESCRIPTION Register cgroup filesystem and /proc file, and initialize any subsystems that didn't request early init. SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgroup_on_dfl(9),...
cgroup_init_early(9)
NAME cgroup_init_early - cgroup initialization at system boot SYNOPSIS int cgroup_init_early (void ); ARGUMENTS void no arguments DESCRIPTION Initialize cgroups at system boot, and initialize any subsystems that request early init. SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgrou...
cgroup_is_descendant(9)
NAME cgroup_is_descendant - test ancestry SYNOPSIS bool cgroup_is_descendant (struct cgroup *cgrp , struct cgroup *ancestor ); ARGUMENTS cgrp the cgroup to be tested ancestor possible ancestor of cgrp DESCRIPTION Test whether cgrp is a descendant of ancestor. It also returns true if cgrp == ancest...
cgroup_kn_lock_live(9)
NAME cgroup_kn_lock_live - locking helper for cgroup kernfs methods SYNOPSIS struct cgroup * cgroup_kn_lock_live (struct kernfs_node *kn , bool drain_offline ); ARGUMENTS kn the kernfs_node being serviced drain_offline perform offline draining on the cgroup DESCRIPTION This helpe...
cgroup_kn_unlock(9)
NAME cgroup_kn_unlock - unlocking helper for cgroup kernfs methods SYNOPSIS void cgroup_kn_unlock (struct kernfs_node *kn ); ARGUMENTS kn the kernfs_node being serviced DESCRIPTION This helper undoes cgroup_kn_lock_live and should be invoked before the method finishes if locking succeeded. Note that onc...
cgroup_lock_and_drain_offline(9)
NAME cgroup_lock_and_drain_offline - lock cgroup_mutex and drain offlined csses SYNOPSIS void cgroup_lock_and_drain_offline (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION Because css offlining is asynchronous, userland may try to re-enable a controller while the previous css is ...
cgroup_migrate(9)
NAME cgroup_migrate - migrate a process or task to a cgroup SYNOPSIS int cgroup_migrate (struct task_struct *leader , bool threadgroup , struct cgroup_mgctx *mgctx ); ARGUMENTS leader the leader of the process or the task to migrate threadgroup whether leader points to the whole process or a single task ...
cgroup_migrate_add_src(9)
NAME cgroup_migrate_add_src - add a migration source css_set SYNOPSIS void cgroup_migrate_add_src (struct css_set *src_cset , struct cgroup *dst_cgrp , struct cgroup_mgctx *mgctx ); ARGUMENTS src_cset the source css_set to add dst_cgrp the destination cgroup mgctx migration context DESCRI...
cgroup_migrate_add_task(9)
NAME cgroup_migrate_add_task - add a migration target task to a migration context SYNOPSIS void cgroup_migrate_add_task (struct task_struct *task , struct cgroup_mgctx *mgctx ); ARGUMENTS task target task mgctx target migration context DESCRIPTION Add task, which is a migration target, to mgctx-...
cgroup_migrate_execute(9)
NAME cgroup_migrate_execute - migrate a taskset SYNOPSIS int cgroup_migrate_execute (struct cgroup_mgctx *mgctx ); ARGUMENTS mgctx migration context DESCRIPTION Migrate tasks in mgctx as setup by migration preparation functions. This function fails iff one of the ->can_attach callbacks fails and guarantee...
cgroup_migrate_finish(9)
NAME cgroup_migrate_finish - cleanup after attach SYNOPSIS void cgroup_migrate_finish (struct cgroup_mgctx *mgctx ); ARGUMENTS mgctx migration context DESCRIPTION Undo cgroup_migrate_add_src and cgroup_migrate_prepare_dst. See those functions for details. SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgrou...
cgroup_migrate_prepare_dst(9)
NAME cgroup_migrate_prepare_dst - prepare destination css_sets for migration SYNOPSIS int cgroup_migrate_prepare_dst (struct cgroup_mgctx *mgctx ); ARGUMENTS mgctx migration context DESCRIPTION Tasks are about to be moved and all the source css_sets have been preloaded to mgctx->preloaded_src_csets....
cgroup_migrate_vet_dst(9)
NAME cgroup_migrate_vet_dst - verify whether a cgroup can be migration destination SYNOPSIS int cgroup_migrate_vet_dst (struct cgroup *dst_cgrp ); ARGUMENTS dst_cgrp destination cgroup to test DESCRIPTION On the default hierarchy, except for the mixable, (possible) thread root and threaded cgroups, subtree_contro...
cgroup_move_task(9)
NAME cgroup_move_task - move task to a different cgroup SYNOPSIS void cgroup_move_task (struct task_struct *task , struct css_set *to ); ARGUMENTS task the task to the target css_set DESCRIPTION Move task to a new cgroup and safely migrate its associated stall state between the different gro...
cgroup_namespaces(7)
NAME cgroup_namespaces - overview of Linux cgroup namespaces DESCRIPTION For an overview of namespaces, see namespaces(7). Cgroup namespaces virtualize the view of a process's cgroups (see cgroups(7)) as seen via /proc/pid/cgroup and /proc/pid/mountinfo. Each cgroup namespace has its own set of cgroup ...
cgroup_on_dfl(9)
NAME cgroup_on_dfl - test whether a cgroup is on the default hierarchy SYNOPSIS bool cgroup_on_dfl (const struct cgroup *cgrp ); ARGUMENTS cgrp the cgroup of interest DESCRIPTION The default hierarchy is the v2 interface of cgroup and this function can be used to test whether a cgroup is on the default hiera...
cgroup_parse_float(9)
NAME cgroup_parse_float - parse a floating number SYNOPSIS int cgroup_parse_float (const char *input , unsigned dec_shift , s64 *v ); ARGUMENTS input input string dec_shift number of decimal digits to shift v output DESCRIPTION Parse a decimal floating point number in input and ...
cgroup_post_fork(9)
NAME cgroup_post_fork - finalize cgroup setup for the child process SYNOPSIS void cgroup_post_fork (struct task_struct *child , struct kernel_clone_args *kargs ); ARGUMENTS child the child process kargs the arguments passed to create the child process DESCRIPTION Attach the child process to its c...
cgroup_propagate_control(9)
NAME cgroup_propagate_control - refresh control masks of a subtree SYNOPSIS void cgroup_propagate_control (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION For cgrp and its subtree, ensure ->subtree_ss_mask matches ->subtree_control and propagate controller availability through the...
cgroup_restore_control(9)
NAME cgroup_restore_control - restore control masks and dom_cgrp of a subtree SYNOPSIS void cgroup_restore_control (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION Restore ->subtree_control, ->subtree_ss_mask and ->dom_cgrp from the respective old_ prefixed fields for cgrp's subtr...
cgroup_rm_cftypes(9)
NAME cgroup_rm_cftypes - remove an array of cftypes from a subsystem SYNOPSIS int cgroup_rm_cftypes (struct cftype *cfts ); ARGUMENTS cfts zero-length name terminated array of cftypes DESCRIPTION Unregister cfts. Files described by cfts are removed from all existing cgroups and all future cgroups won't ha...
cgroup_save_control(9)
NAME cgroup_save_control - save control masks and dom_cgrp of a subtree SYNOPSIS void cgroup_save_control (struct cgroup *cgrp ); ARGUMENTS cgrp root of the target subtree DESCRIPTION Save ->subtree_control, ->subtree_ss_mask and ->dom_cgrp to the respective old_ prefixed fields for cgrp's subtree including c...
cgroup_ssid_enabled(9)
NAME cgroup_ssid_enabled - cgroup subsys enabled test by subsys ID SYNOPSIS bool cgroup_ssid_enabled (int ssid ); ARGUMENTS ssid subsys ID of interest DESCRIPTION cgroup_subsys_enabled can only be used with literal subsys names which is fine for individual subsystems but unsuitable for cgroup core. This is s...
cgroup_subsys_enabled(9)
NAME cgroup_subsys_enabled - fast test on whether a subsys is enabled SYNOPSIS cgroup_subsys_enabled (ss ); ARGUMENTS ss subsystem in question SEE ALSO Kernel file ./include/linux/cgroup.h cgroup_subsys_on_dfl(9), css_for_each_child(9), css_for_each_descendant_pre(9), css_for_each_descendant_post(9),...
cgroup_subsys_on_dfl(9)
NAME cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy SYNOPSIS cgroup_subsys_on_dfl (ss ); ARGUMENTS ss subsystem in question SEE ALSO Kernel file ./include/linux/cgroup.h cgroup_subsys_enabled(9), css_for_each_child(9), css_for_each_descendant_pre(9), css_for_each_descenda...
cgroup_task_count(9)
NAME cgroup_task_count - count the number of tasks in a cgroup. SYNOPSIS int cgroup_task_count (const struct cgroup *cgrp ); ARGUMENTS cgrp the cgroup in question SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgroup_on_dfl(9), cgroup_css(9), cgroup_e_css_by_mask(9), cgroup_e_css(9), cg...
cgroup_task_exit(9)
NAME cgroup_task_exit - detach cgroup from exiting task SYNOPSIS void cgroup_task_exit (struct task_struct *tsk ); ARGUMENTS tsk pointer to task_struct of exiting process DESCRIPTION Detach cgroup from tsk. SEE ALSO Kernel file ./kernel/cgroup/cgroup.c cgroup_ssid_enabled(9), cgroup_on_dfl(9), cgroup_css(...
cgroup_taskset_first(9)
NAME cgroup_taskset_first - reset taskset and return the first task SYNOPSIS struct task_struct * cgroup_taskset_first (struct cgroup_taskset *tset , struct cgroup_subsys_state **dst_cssp ); ARGUMENTS tset taskset of interest dst_cssp output variable for the destination css DESCRIPTION tset iterati...
cgroup_taskset_for_each(9)
NAME cgroup_taskset_for_each - iterate cgroup_taskset SYNOPSIS cgroup_taskset_for_each (task , dst_css , tset ); ARGUMENTS task the loop cursor dst_css the destination css tset taskset to iterate DESCRIPTION tset may contain multiple tasks and they may belong to multiple processes...
cgroup_taskset_for_each_leader(9)
NAME cgroup_taskset_for_each_leader - iterate group leaders in a cgroup_taskset SYNOPSIS cgroup_taskset_for_each_leader (leader , dst_css , tset ); ARGUMENTS leader the loop cursor dst_css the destination css tset taskset to iterate DESCRIPTION Iterate threadgroup leaders of tset. Fo...
cgroup_taskset_next(9)
NAME cgroup_taskset_next - iterate to the next task in taskset SYNOPSIS struct task_struct * cgroup_taskset_next (struct cgroup_taskset *tset , struct cgroup_subsys_state **dst_cssp ); ARGUMENTS tset taskset of interest dst_cssp output variable for the destination css DESCRIPTION Return the next ta...
cgroup_threadgroup_change_begin(9)
NAME cgroup_threadgroup_change_begin - threadgroup exclusion for cgroups SYNOPSIS void cgroup_threadgroup_change_begin (struct task_struct *tsk ); ARGUMENTS tsk target task DESCRIPTION Allows cgroup operations to synchronize against threadgroup changes using a global percpu_rw_semaphore and a per threadgroup...
cgroup_threadgroup_change_end(9)
NAME cgroup_threadgroup_change_end - threadgroup exclusion for cgroups SYNOPSIS void cgroup_threadgroup_change_end (struct task_struct *tsk ); ARGUMENTS tsk target task DESCRIPTION Counterpart of cgroup_threadcgroup_change_begin. SEE ALSO Kernel file ./include/linux/cgroup-defs.h cgroup_threadgroup_change_b...
cgroup_transfer_tasks(9)
NAME cgroup_transfer_tasks - move tasks from one cgroup to another SYNOPSIS int cgroup_transfer_tasks (struct cgroup *to , struct cgroup *from ); ARGUMENTS to cgroup to which the tasks will be moved from cgroup in which the tasks currently reside DESCRIPTION Locking rules between cgroup_pos...
cgroup_tryget_css(9)
NAME cgroup_tryget_css - try to get a cgroup's css for the specified subsystem SYNOPSIS struct cgroup_subsys_state * cgroup_tryget_css (struct cgroup *cgrp , struct cgroup_subsys *ss ); ARGUMENTS cgrp the cgroup of interest ss the subsystem of interest DESCRIPTION Find and get cgrp's css asso...
cgroup_update_dfl_csses(9)
NAME cgroup_update_dfl_csses - update css assoc of a subtree in default hierarchy SYNOPSIS int cgroup_update_dfl_csses (struct cgroup *cgrp ); ARGUMENTS cgrp root of the subtree to update csses for DESCRIPTION cgrp's control masks have changed and its subtree's css associations need to be updated according...
cgroup_update_populated(9)
NAME cgroup_update_populated - update the populated count of a cgroup SYNOPSIS void cgroup_update_populated (struct cgroup *cgrp , bool populated ); ARGUMENTS cgrp the target cgroup populated inc or dec populated count DESCRIPTION One of the css_sets associated with cgrp is either getting its first...
cgroup_v1v2_get_from_fd(9)
NAME cgroup_v1v2_get_from_fd - get a cgroup pointer from a fd SYNOPSIS struct cgroup * cgroup_v1v2_get_from_fd (int fd ); ARGUMENTS fd fd obtained by open(cgroup_dir) DESCRIPTION Find the cgroup from a fd which should be obtained by opening a cgroup directory. Returns a pointer to the cgroup on success. ER...
cgroup_v1v2_get_from_file(9)
NAME cgroup_v1v2_get_from_file - get a cgroup pointer from a file pointer SYNOPSIS struct cgroup * cgroup_v1v2_get_from_file (struct file *f ); ARGUMENTS f file corresponding to cgroup_dir DESCRIPTION Find the cgroup from a file pointer associated with a cgroup directory. Returns a pointer to the cgroup o...
cgroup_writeback_by_id(9)
NAME cgroup_writeback_by_id - initiate cgroup writeback from bdi and memcg IDs SYNOPSIS int cgroup_writeback_by_id (u64 bdi_id , int memcg_id , enum wb_reason reason , struct wb_completion *done ); ARGUMENTS bdi_id target bdi id memcg_id target memcg css id reason reason why some writebac...
cgroup_writeback_umount(9)
NAME cgroup_writeback_umount - flush inode wb switches for umount SYNOPSIS void cgroup_writeback_umount (struct super_block *sb ); ARGUMENTS sb target super_block DESCRIPTION This function is called when a super_block is about to be destroyed and flushes in-flight inode wb switches. An inode wb switch go...
cgroups(7)
NAME cgroups - Linux control groups DESCRIPTION Control groups, usually referred to as cgroups, are a Linux kernel feature which allow processes to be organized into hierarchical groups whose usage of various types of resources can then be limited and monitored. The kernel's cgroup interface is provided through a p...
cgroupstats_build(9)
NAME cgroupstats_build - build and fill cgroupstats SYNOPSIS int cgroupstats_build (struct cgroupstats *stats , struct dentry *dentry ); ARGUMENTS stats cgroupstats to fill information into dentry A dentry entry belonging to the cgroup for which stats have been requested. DESCRIPTION Build and fil...
chacha_block_generic(9)
NAME chacha_block_generic - generate one keystream block and increment block counter SYNOPSIS void chacha_block_generic (struct chacha_state *state , u8 out[CHACHA_BLOCK_SIZE] , int nrounds ); ARGUMENTS state input state matrix out output keystream block nrounds number of rounds (20 ...
chacl(1)
NAME chacl - change the access control list of a file or directory SYNOPSIS chacl acl pathname... chacl -b acl dacl pathname... chacl -d dacl pathname... chacl -R pathname... chacl -D pathname... chacl -B pathname... chacl -l pathname... chacl -r pathname... DESCRIPTION chacl is an IRIX-compatibility command, and i...
chage(1)
NAME chage - change user password expiry information SYNOPSIS chage [options] LOGIN DESCRIPTION The chage command changes password expiration information for a user. It sets the number of days between password changes and the date of the last password change. This information is used by the system to determin...
chain_busy(9)
NAME chain_busy - check if the chain is still processing last requests SYNOPSIS int chain_busy (struct hinic_api_cmd_chain *chain ); ARGUMENTS chain chain to check DESCRIPTION Return 0 - Success, negative - Failure SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c get_cell_data_size(...
change_auth_cap_ses(9)
NAME change_auth_cap_ses - move inode to appropriate lists when auth caps change SYNOPSIS void change_auth_cap_ses (struct ceph_inode_info *ci , struct ceph_mds_session *session ); ARGUMENTS ci inode to be moved session new auth caps session SEE ALSO Kernel file ./fs/ceph/caps.c ceph_encode_dent...
change_bit(9)
NAME change_bit - Toggle a bit in memory SYNOPSIS void change_bit (long nr , volatile unsigned long *addr ); ARGUMENTS nr Bit to change addr Address to start counting from DESCRIPTION This is a relaxed atomic operation (no implied memory barriers). Note that nr may be almost arbitrarily larg...
change_category(9)
NAME change_category - change LEB properties category. SYNOPSIS void change_category (struct ubifs_info *c , struct ubifs_lprops *lprops ); ARGUMENTS c UBIFS file-system description object lprops LEB properties to re-categorize DESCRIPTION LEB properties are categorized to enable fast find ope...
change_mac(9)
NAME change_mac - change(add or delete) mac address SYNOPSIS int change_mac (struct hinic_dev *nic_dev , const u8 *addr , u16 vlan_id , enum mac_op op ); ARGUMENTS nic_dev nic device addr mac address vlan_id vlan number to set with the mac op add or delete the mac DESC...
change_mac_addr(9)
NAME change_mac_addr - change the main mac address of network device SYNOPSIS int change_mac_addr (struct net_device *netdev , const u8 *addr ); ARGUMENTS netdev network device addr mac address to set DESCRIPTION Return 0 - Success, negative - Failure SEE ALSO Kernel file ./drivers/net/ethernet/...
change_profile_perms(9)
NAME change_profile_perms - find permissions for change_profile SYNOPSIS int change_profile_perms (struct aa_profile *profile , struct aa_label *target , bool stack , u32 request , aa_state_t start , struct aa_perms *perms ); ARGUMENTS profile the current profile (NOT NULL) target label to transitio...
change_xattr(9)
NAME change_xattr - change an extended attribute. SYNOPSIS int change_xattr (struct ubifs_info *c , struct inode *host , struct inode *inode , const void *value , int size ); ARGUMENTS c UBIFS file-system description object host host inode inode extended attribute inode ...
changeset_dup_entry_check(9)
NAME changeset_dup_entry_check - check for duplicate entries SYNOPSIS int changeset_dup_entry_check (struct overlay_changeset *ovcs ); ARGUMENTS ovcs Overlay changeset DESCRIPTION Check changeset ovcs->cset for multiple {add or delete} node entries for the same node or duplicate {add, delete, or update} prope...
channel_detector_get(9)
NAME channel_detector_get - get channel detector for given frequency SYNOPSIS struct channel_detector * channel_detector_get (struct dfs_pattern_detector *dpd , u16 freq ); ARGUMENTS dpd DPD instance pointer freq freq frequency in MHz DESCRIPTION Return value: pointer to channel detector on su...
channel_show(9)
NAME channel_show - Get function for sysfs attribute channel SYNOPSIS ssize_t channel_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 ./d...
channel_store(9)
NAME channel_store - Set function for sysfs attribute channel SYNOPSIS ssize_t channel_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 valu...
charger_extcon_init(9)
NAME charger_extcon_init - register external connector to use it as the charger cable SYNOPSIS int charger_extcon_init (struct charger_manager *cm , struct charger_cable *cable ); ARGUMENTS cm the Charger Manager representing the battery. cable the Charger cable representing the external connec...
charger_extcon_notifier(9)
NAME charger_extcon_notifier - receive the state of charger cable when registered cable is attached or detached. SYNOPSIS int charger_extcon_notifier (struct notifier_block *self , unsigned long event , void *ptr ); ARGUMENTS self the notifier block of the charger_extcon_notifier. event the cable...
charger_extcon_work(9)
NAME charger_extcon_work - enable/diable charger according to the state of charger cable SYNOPSIS void charger_extcon_work (struct work_struct *work ); ARGUMENTS work work_struct of the function charger_extcon_work. SEE ALSO Kernel file ./drivers/power/supply/charger-manager.c is_batt_present(9), is_ext_pwr_o...
charger_manager_prepare_sysfs(9)
NAME charger_manager_prepare_sysfs - Prepare sysfs entry for each charger SYNOPSIS int charger_manager_prepare_sysfs (struct charger_manager *cm ); ARGUMENTS cm the Charger Manager representing the battery. DESCRIPTION This function add sysfs entry for charger(regulator) to control charger from user-space...
charger_manager_register_extcon(9)
NAME charger_manager_register_extcon - Register extcon device to receive state of charger cable. SYNOPSIS int charger_manager_register_extcon (struct charger_manager *cm ); ARGUMENTS cm the Charger Manager representing the battery. DESCRIPTION This function support EXTCON(External Connector) subsystem to d...
charmap(5)
NAME charmap - character set description file DESCRIPTION A character set description (charmap) defines all available characters and their encodings in a character set. localedef(1) can use charmaps to create locale variants for different character sets. Syntax The charmap file starts with a header that ma...
charsets(7)
NAME charsets - character set standards and internationalization DESCRIPTION This manual page gives an overview on different character set standards and how they were used on Linux before Unicode became ubiquitous. Some of this information is still helpful for people working with legacy systems and documents. ...
chattr(1)
NAME chattr - change file attributes on a Linux file system SYNOPSIS chattr [ -RVf ] [ -v version ] [ -p project ] [ mode ] files... DESCRIPTION chattr changes the file attributes on a Linux file system. The format of a symbolic mode is +-=[aAcCdDeFijmPsStTux]. The operator '+' causes the selected att...
chcon(1)
NAME chcon - change file security context SYNOPSIS chcon [OPTION]... CONTEXT FILE... chcon [OPTION]... [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE... chcon [OPTION]... --reference=RFILE FILE... DESCRIPTION Change the SELinux security context of each FILE to CONTEXT. With --reference, change the security context of...
chcpu(8)
NAME chcpu - configure CPUs SYNOPSIS chcpu -c|-d|-e|-g cpu-list chcpu -p mode chcpu -r|-h|-V DESCRIPTION chcpu can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying hypervisor, and request CPUs from the hypervisor (configure) ...