id
stringlengths
4
63
text
stringlengths
153
8.81M
key_type_flash(9)
NAME key_type_flash - get type of a on-flash formatted key. SYNOPSIS int key_type_flash (const struct ubifs_info *c , const void *k ); ARGUMENTS c UBIFS file-system description object k key to get type of SEE ALSO Kernel file ./fs/ubifs/key.h key_mask_hash(9), key_r5_hash(9), ke...
key_unlink(9)
NAME key_unlink - Unlink the first link to a key from a keyring. SYNOPSIS int key_unlink (struct key *keyring , struct key *key ); ARGUMENTS keyring The keyring to remove the link from. key The key the link is to. DESCRIPTION Remove a link from a keyring to a key. This function will write...
key_update(9)
NAME key_update - Update a key's contents. SYNOPSIS int key_update (key_ref_t key_ref , const void *payload , size_t plen ); ARGUMENTS key_ref The pointer (plus possession flag) to the key. payload The data to be used to update the key. plen The length of payload. DESCRIPTION Attempt ...
key_validate(9)
NAME key_validate - Validate a key. SYNOPSIS int key_validate (const struct key *key ); ARGUMENTS key The key to be validated. DESCRIPTION Check that a key is valid, returning 0 if the key is okay, -ENOKEY if the key is invalidated, -EKEYREVOKED if the key's type has been removed or if the key has been revok...
key_write(9)
NAME key_write - transform a key from in-memory format. SYNOPSIS void key_write (const struct ubifs_info *c , const union ubifs_key *from , void *to ); ARGUMENTS c UBIFS file-system description object from the key to transform to the key to store the result SEE ALSO Kernel ...
key_write_idx(9)
NAME key_write_idx - transform a key from in-memory format for the index. SYNOPSIS void key_write_idx (const struct ubifs_info *c , const union ubifs_key *from , void *to ); ARGUMENTS c UBIFS file-system description object from the key to transform to the key to store the res...
keybound.3x(3)
NAME keybound - get definition of curses keycode SYNOPSIS #include <ncursesw/curses.h> char * keybound(int keycode, int count); DESCRIPTION This is an extension to the curses library. It permits an application to determine the string which is defined in the terminfo for specific keycodes. RETURN VALUE The ...
keybound_sp.3x(3)
NAME curs_sp_funcs - curses screen-pointer extension SYNOPSIS #include <ncursesw/curses.h> int alloc_pair_sp(SCREEN* sp, int fg, int bg); int assume_default_colors_sp(SCREEN* sp, int fg, int bg); int baudrate_sp(SCREEN* sp); int beep_sp(SCREEN* sp); bool can_change_color_sp(SCREEN* ...
keyctl(2)
NAME keyctl - manipulate the kernel's key management facility LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <linux/keyctl.h> /* Definition of KEY* constants */ #include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h> long syscall(SYS_keyctl, int op, ...); DESCRIPTION key...
keymaps(5)
NAME keymaps - keyboard table descriptions for loadkeys and dumpkeys DESCRIPTION These files are used by loadkeys(1) to modify the translation tables used by the kernel keyboard driver and generated by dumpkeys(1) from those translation tables. The format of these files is vaguely similar to the one accepted b...
keyname.3x(3)
NAME delay_output, filter, flushinp, getwin, key_name, keyname, nofilter, putwin, unctrl, use_env, use_tioctl, wunctrl - miscellaneous curses utility routines SYNOPSIS #include <ncursesw/curses.h> const char *unctrl(chtype ch); wchar_t *wunctrl(cchar_t *wch); const char *keyname(int c); c...
keyname_sp.3x(3)
NAME curs_sp_funcs - curses screen-pointer extension SYNOPSIS #include <ncursesw/curses.h> int alloc_pair_sp(SCREEN* sp, int fg, int bg); int assume_default_colors_sp(SCREEN* sp, int fg, int bg); int baudrate_sp(SCREEN* sp); int beep_sp(SCREEN* sp); bool can_change_color_sp(SCREEN* ...
keyok.3x(3)
NAME keyok - enable or disable a curses keycode SYNOPSIS #include <ncursesw/curses.h> int keyok(int keycode, bool enable); DESCRIPTION This is an extension to the curses library. It permits an application to disable specific keycodes, rather than use the keypad function to disable all keycodes. Keys that ha...
keyok_sp.3x(3)
NAME curs_sp_funcs - curses screen-pointer extension SYNOPSIS #include <ncursesw/curses.h> int alloc_pair_sp(SCREEN* sp, int fg, int bg); int assume_default_colors_sp(SCREEN* sp, int fg, int bg); int baudrate_sp(SCREEN* sp); int beep_sp(SCREEN* sp); bool can_change_color_sp(SCREEN* ...
keypad.3x(3)
NAME cbreak, echo, halfdelay, intrflush, is_cbreak, is_echo, is_nl, is_raw, keypad, meta, nl, nocbreak, nodelay, noecho, nonl, noqiflush, noraw, notimeout, qiflush, raw, timeout, wtimeout, typeahead - get and set curses terminal input op‐ tions SYNOPSIS #include <ncursesw/curses.h> int cbreak(void); ...
keyring_clear(9)
NAME keyring_clear - Clear a keyring SYNOPSIS int keyring_clear (struct key *keyring ); ARGUMENTS keyring The keyring to clear. DESCRIPTION Clear the contents of the specified keyring. Returns 0 if successful or -ENOTDIR if the keyring isn't a keyring. SEE ALSO Kernel file ./security/keys/keyring.c key_put_tag...
keyring_restrict(9)
NAME keyring_restrict - Look up and apply a restriction to a keyring SYNOPSIS int keyring_restrict (key_ref_t keyring_ref , const char *type , const char *restriction ); ARGUMENTS keyring_ref The keyring to be restricted type The key type that will provide the restriction checker. restriction T...
keyring_search(9)
NAME keyring_search - Search the supplied keyring tree for a matching key SYNOPSIS key_ref_t keyring_search (key_ref_t keyring , struct key_type *type , const char *description , bool recurse ); ARGUMENTS keyring The root of the keyring tree to be searched. type The type of keyring we want to find....
keyring_search_rcu(9)
NAME keyring_search_rcu - Search a keyring tree for a matching key under RCU SYNOPSIS key_ref_t keyring_search_rcu (key_ref_t keyring_ref , struct keyring_search_context *ctx ); ARGUMENTS keyring_ref A pointer to the keyring with possession indicator. ctx The keyring search context. DESCRIPTION Searc...
keyrings(7)
NAME keyrings - in-kernel key management and retention facility DESCRIPTION The Linux key-management facility is primarily a way for various kernel components to retain or cache security data, authentication keys, encryption keys, and other data in the kernel. System call interfaces are provided so that user-s...
keys_cmp(9)
NAME keys_cmp - compare keys. SYNOPSIS int keys_cmp (const struct ubifs_info *c , const union ubifs_key *key1 , const union ubifs_key *key2 ); ARGUMENTS c UBIFS file-system description object key1 the first key to compare key2 the second key to compare DESCRIPTION This functio...
keys_eq(9)
NAME keys_eq - determine if keys are equivalent. SYNOPSIS int keys_eq (const struct ubifs_info *c , const union ubifs_key *key1 , const union ubifs_key *key2 ); ARGUMENTS c UBIFS file-system description object key1 the first key to compare key2 the second key to compare DESCRI...
keystone_timer_barrier(9)
NAME keystone_timer_barrier - write memory barrier use explicit barrier to avoid using readl/writel non relaxed function variants, because in our case non relaxed variants hide the true places where barrier is needed. SYNOPSIS void keystone_timer_barrier (void ); ARGUMENTS void no arguments SEE ALSO Kernel fi...
keystone_timer_config(9)
NAME keystone_timer_config - configures timer to work in oneshot/periodic modes. @ mask: mask of the mode to configure @ period: cycles number to configure for SYNOPSIS int keystone_timer_config (u64 period , int mask ); ARGUMENTS period -- undescribed -- mask -- undescribed -- SEE ALSO Kernel fi...
keytool(1)
NAME keytool - a key and certificate management utility SYNOPSIS keytool [commands] commands Commands for keytool include the following: • -certreq: Generates a certificate request • -changealias: Changes an entry's alias • -delete: Deletes an entry ...
kfd_get_cu_occupancy(9)
NAME kfd_get_cu_occupancy - Collect number of waves in-flight on this device by current process. Translates acquired wave count into number of compute units that are occupied. SYNOPSIS int kfd_get_cu_occupancy (struct attribute *attr , char *buffer ); ARGUMENTS attr Handle of attribute that allows reporting of...
kfd_mem_dmamap_sg_bo(9)
NAME kfd_mem_dmamap_sg_bo - Create DMA mapped sg_table to access DOORBELL or MMIO BO SYNOPSIS int kfd_mem_dmamap_sg_bo (struct kgd_mem *mem , struct kfd_mem_attachment *attachment ); ARGUMENTS mem SG BO of the DOORBELL or MMIO resource on the owning device attachment Virtual address attachment of the...
kfd_mem_dmaunmap_sg_bo(9)
NAME kfd_mem_dmaunmap_sg_bo - Free DMA mapped sg_table of DOORBELL or MMIO BO SYNOPSIS void kfd_mem_dmaunmap_sg_bo (struct kgd_mem *mem , struct kfd_mem_attachment *attachment ); ARGUMENTS mem SG BO of the DOORBELL or MMIO resource on the owning device attachment Virtual address attachment of the BO ...
kfd_process_device_init_vm(9)
NAME kfd_process_device_init_vm - Initialize a VM for a process-device SYNOPSIS int kfd_process_device_init_vm (struct kfd_process_device *pdd , struct file *drm_file ); ARGUMENTS pdd The process-device drm_file Optional pointer to a DRM file descriptor DESCRIPTION If drm_file is specified, it wi...
kfd_topology_update_io_links(9)
NAME kfd_topology_update_io_links - Update IO links after device removal. SYNOPSIS void kfd_topology_update_io_links (int proximity_domain ); ARGUMENTS proximity_domain Proximity domain value of the dev being removed. DESCRIPTION The topology list currently is arranged in increasing order of proximity domain. Two t...
kfence_alloc(9)
NAME kfence_alloc - allocate a KFENCE object with a low probability SYNOPSIS void * kfence_alloc (struct kmem_cache *s , size_t size , gfp_t flags ); ARGUMENTS s struct kmem_cache with object requirements size exact size of the object to allocate (can be less than s->size e.g. for kmalloc cac...
kfence_alloc_pool_and_metadata(9)
NAME kfence_alloc_pool_and_metadata - allocate the KFENCE pool and KFENCE metadata via memblock SYNOPSIS void kfence_alloc_pool_and_metadata (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./include/linux/kfence.h is_kfence_address(9), kfence_init(9), kfence_shutdown_cache(9), kfence_alloc(9), kfenc...
kfence_free(9)
NAME kfence_free - try to release an arbitrary heap object to KFENCE pool SYNOPSIS bool kfence_free (void *addr ); ARGUMENTS addr object to be freed RETURN * false - object doesn't belong to KFENCE pool and was ignored, * true - object was released to KFENCE pool. DESCRIPTION Release a KFENCE object and mar...
kfence_handle_page_fault(9)
NAME kfence_handle_page_fault - perform page fault handling for KFENCE pages SYNOPSIS bool kfence_handle_page_fault (unsigned long addr , bool is_write , struct pt_regs *regs ); ARGUMENTS addr faulting address is_write is access a write regs current struct pt_regs (can be NULL, but sh...
kfence_init(9)
NAME kfence_init - perform KFENCE initialization at boot time SYNOPSIS void kfence_init (void ); ARGUMENTS void no arguments DESCRIPTION Requires that kfence_alloc_pool_and_metadata was called before. This sets up the allocation gate timer, and requires that workqueues are available. SEE ALSO Kernel file ....
kfence_ksize(9)
NAME kfence_ksize - get actual amount of memory allocated for a KFENCE object SYNOPSIS size_t kfence_ksize (const void *addr ); ARGUMENTS addr pointer to a heap object RETURN * 0 - not a KFENCE object, must call __ksize instead, * non-0 - this many bytes can be accessed without causing a memory error. DE...
kfence_object_start(9)
NAME kfence_object_start - find the beginning of a KFENCE object SYNOPSIS void * kfence_object_start (const void *addr ); ARGUMENTS addr address within a KFENCE-allocated object RETURN address of the beginning of the object. DESCRIPTION SL[AU]B-allocated objects are laid out within a page one by one, so it...
kfence_shutdown_cache(9)
NAME kfence_shutdown_cache - handle shutdown_cache() for KFENCE objects SYNOPSIS void kfence_shutdown_cache (struct kmem_cache *s ); ARGUMENTS s cache being shut down DESCRIPTION Before shutting down a cache, one must ensure there are no remaining objects allocated from it. Because KFENCE objects are not...
kfifo_alloc(9)
NAME kfifo_alloc - dynamically allocates a new fifo buffer SYNOPSIS kfifo_alloc (fifo , size , gfp_mask ); ARGUMENTS fifo pointer to the fifo size the number of elements in the fifo, this must be a power of 2 gfp_mask get_free_pages mask, passed to kmalloc DESCRIPTION This macro dyna...
kfifo_alloc_node(9)
NAME kfifo_alloc_node - dynamically allocates a new fifo buffer on a NUMA node SYNOPSIS kfifo_alloc_node (fifo , size , gfp_mask , node ); ARGUMENTS fifo pointer to the fifo size the number of elements in the fifo, this must be a power of 2 gfp_mask get_free_pages mask, passed to kmal...
kfifo_avail(9)
NAME kfifo_avail - returns the number of unused elements in the fifo SYNOPSIS kfifo_avail (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfi...
kfifo_dma_in_finish(9)
NAME kfifo_dma_in_finish - finish a DMA IN operation SYNOPSIS kfifo_dma_in_finish (fifo , len ); ARGUMENTS fifo address of the fifo to be used len number of bytes to received DESCRIPTION This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error check...
kfifo_dma_in_prepare_mapped(9)
NAME kfifo_dma_in_prepare_mapped - setup a scatterlist for DMA input SYNOPSIS kfifo_dma_in_prepare_mapped (fifo , sgl , nents , len , dma ); ARGUMENTS fifo address of the fifo to be used sgl pointer to the scatterlist array nents number of entries in the scatterlist array ...
kfifo_dma_out_finish(9)
NAME kfifo_dma_out_finish - finish a DMA OUT operation SYNOPSIS kfifo_dma_out_finish (fifo , len ); ARGUMENTS fifo address of the fifo to be used len number of bytes transferred DESCRIPTION This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No er...
kfifo_dma_out_prepare_mapped(9)
NAME kfifo_dma_out_prepare_mapped - setup a scatterlist for DMA output SYNOPSIS kfifo_dma_out_prepare_mapped (fifo , sgl , nents , len , dma ); ARGUMENTS fifo address of the fifo to be used sgl pointer to the scatterlist array nents number of entries in the scatterlist array ...
kfifo_esize(9)
NAME kfifo_esize - returns the size of the element managed by the fifo SYNOPSIS kfifo_esize (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_recsize(9)...
kfifo_free(9)
NAME kfifo_free - frees the fifo SYNOPSIS kfifo_free (fifo ); ARGUMENTS fifo the fifo to be freed SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfifo_recsize(9), kfifo_size(9), kfifo_reset(9), k...
kfifo_from_user(9)
NAME kfifo_from_user - puts some data from user space into the fifo SYNOPSIS kfifo_from_user (fifo , from , len , copied ); ARGUMENTS fifo address of the fifo to be used from pointer to the data to be added len the length of the data to be added copied pointer to out...
kfifo_get(9)
NAME kfifo_get - get data from the fifo SYNOPSIS kfifo_get (fifo , val ); ARGUMENTS fifo address of the fifo to be used val address where to store the data DESCRIPTION This macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed eleme...
kfifo_in(9)
NAME kfifo_in - put data into the fifo SYNOPSIS kfifo_in (fifo , buf , n ); ARGUMENTS fifo address of the fifo to be used buf the data to be added n number of elements to be added DESCRIPTION This macro copies the given buffer into the fifo and returns the number of copied el...
kfifo_in_spinlocked(9)
NAME kfifo_in_spinlocked - put data into the fifo using a spinlock for locking SYNOPSIS kfifo_in_spinlocked (fifo , buf , n , lock ); ARGUMENTS fifo address of the fifo to be used buf the data to be added n number of elements to be added lock pointer to the spin...
kfifo_in_spinlocked_noirqsave(9)
NAME kfifo_in_spinlocked_noirqsave - put data into fifo using a spinlock for locking, don't disable interrupts SYNOPSIS kfifo_in_spinlocked_noirqsave (fifo , buf , n , lock ); ARGUMENTS fifo address of the fifo to be used buf the data to be added n number of elements to be add...
kfifo_init(9)
NAME kfifo_init - initialize a fifo using a preallocated buffer SYNOPSIS kfifo_init (fifo , buffer , size ); ARGUMENTS fifo the fifo to assign the buffer buffer the preallocated buffer to be used size the size of the internal buffer, this have to be a power of 2 DESCRIPTION This ma...
kfifo_initialized(9)
NAME kfifo_initialized - Check if the fifo is initialized SYNOPSIS kfifo_initialized (fifo ); ARGUMENTS fifo address of the fifo to check DESCRIPTION Return true if fifo is initialized, otherwise false. Assumes the fifo was 0 before. SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), ...
kfifo_is_empty(9)
NAME kfifo_is_empty - returns true if the fifo is empty SYNOPSIS kfifo_is_empty (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfifo_recsize...
kfifo_is_empty_spinlocked(9)
NAME kfifo_is_empty_spinlocked - returns true if the fifo is empty using a spinlock for locking SYNOPSIS kfifo_is_empty_spinlocked (fifo , lock ); ARGUMENTS fifo address of the fifo to be used lock spinlock to be used for locking SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR...
kfifo_is_empty_spinlocked_noirqsave(9)
NAME kfifo_is_empty_spinlocked_noirqsave - returns true if the fifo is empty using a spinlock for locking, doesn't disable interrupts SYNOPSIS kfifo_is_empty_spinlocked_noirqsave (fifo , lock ); ARGUMENTS fifo address of the fifo to be used lock spinlock to be used for locking SEE ALSO Kernel ...
kfifo_is_full(9)
NAME kfifo_is_full - returns true if the fifo is full SYNOPSIS kfifo_is_full (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfifo_recsize(9)...
kfifo_len(9)
NAME kfifo_len - returns the number of used elements in the fifo SYNOPSIS kfifo_len (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfifo_rec...
kfifo_out(9)
NAME kfifo_out - get data from the fifo SYNOPSIS kfifo_out (fifo , buf , n ); ARGUMENTS fifo address of the fifo to be used buf pointer to the storage buffer n max. number of elements to get DESCRIPTION This macro gets some data from the fifo and returns the numbers of elemen...
kfifo_out_linear(9)
NAME kfifo_out_linear - gets a tail of/offset to available data SYNOPSIS kfifo_out_linear (fifo , tail , n ); ARGUMENTS fifo address of the fifo to be used tail pointer to an unsigned int to store the value of tail n max. number of elements to point at DESCRIPTION This macro ...
kfifo_out_linear_ptr(9)
NAME kfifo_out_linear_ptr - gets a pointer to the available data SYNOPSIS kfifo_out_linear_ptr (fifo , ptr , n ); ARGUMENTS fifo address of the fifo to be used ptr pointer to data to store the pointer to tail n max. number of elements to point at DESCRIPTION Similarly to kf...
kfifo_out_peek(9)
NAME kfifo_out_peek - gets some data from the fifo SYNOPSIS kfifo_out_peek (fifo , buf , n ); ARGUMENTS fifo address of the fifo to be used buf pointer to the storage buffer n max. number of elements to get DESCRIPTION This macro gets the data from the fifo and returns the n...
kfifo_out_spinlocked(9)
NAME kfifo_out_spinlocked - get data from the fifo using a spinlock for locking SYNOPSIS kfifo_out_spinlocked (fifo , buf , n , lock ); ARGUMENTS fifo address of the fifo to be used buf pointer to the storage buffer n max. number of elements to get lock pointer ...
kfifo_out_spinlocked_noirqsave(9)
NAME kfifo_out_spinlocked_noirqsave - get data from the fifo using a spinlock for locking, don't disable interrupts SYNOPSIS kfifo_out_spinlocked_noirqsave (fifo , buf , n , lock ); ARGUMENTS fifo address of the fifo to be used buf pointer to the storage buffer n max. number o...
kfifo_peek(9)
NAME kfifo_peek - get data from the fifo without removing SYNOPSIS kfifo_peek (fifo , val ); ARGUMENTS fifo address of the fifo to be used val address where to store the data DESCRIPTION This reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty....
kfifo_peek_len(9)
NAME kfifo_peek_len - gets the size of the next fifo record SYNOPSIS kfifo_peek_len (fifo ); ARGUMENTS fifo address of the fifo to be used DESCRIPTION This function returns the size of the next fifo record in number of bytes. SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIF...
kfifo_put(9)
NAME kfifo_put - put data into the fifo SYNOPSIS kfifo_put (fifo , val ); ARGUMENTS fifo address of the fifo to be used val the data to be added DESCRIPTION This macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements....
kfifo_recsize(9)
NAME kfifo_recsize - returns the size of the record length field SYNOPSIS kfifo_recsize (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfi...
kfifo_reset(9)
NAME kfifo_reset - removes the entire fifo content SYNOPSIS kfifo_reset (fifo ); ARGUMENTS fifo address of the fifo to be used NOTE usage of kfifo_reset is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo. SEE ALSO Kernel ...
kfifo_reset_out(9)
NAME kfifo_reset_out - skip fifo content SYNOPSIS kfifo_reset_out (fifo ); ARGUMENTS fifo address of the fifo to be used NOTE The usage of kfifo_reset_out is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the s...
kfifo_size(9)
NAME kfifo_size - returns the size of the fifo in elements SYNOPSIS kfifo_size (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfifo_recsize...
kfifo_skip(9)
NAME kfifo_skip - skip output data SYNOPSIS kfifo_skip (fifo ); ARGUMENTS fifo address of the fifo to be used SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initialized(9), kfifo_esize(9), kfifo_recsize(9), kfifo_size(9), kfifo...
kfifo_skip_count(9)
NAME kfifo_skip_count - skip output data SYNOPSIS kfifo_skip_count (fifo , count ); ARGUMENTS fifo address of the fifo to be used count count of data to skip SEE ALSO Kernel file ./include/linux/kfifo.h DECLARE_KFIFO_PTR(9), DECLARE_KFIFO(9), INIT_KFIFO(9), DEFINE_KFIFO(9), kfifo_initiali...
kfifo_to_user(9)
NAME kfifo_to_user - copies data from the fifo into user space SYNOPSIS kfifo_to_user (fifo , to , len , copied ); ARGUMENTS fifo address of the fifo to be used to where the data must be copied len the size of the destination buffer copied pointer to output variabl...
kfree(9)
NAME kfree - free previously allocated memory SYNOPSIS void kfree (const void *object ); ARGUMENTS object pointer returned by kmalloc, kmalloc_nolock, or kmem_cache_alloc DESCRIPTION If object is NULL, no operation is performed. SEE ALSO Kernel file ./mm/slub.c enum slab_flags(9), kmem_cache_alloc_node(9), kma...
kfree_const(9)
NAME kfree_const - conditionally free memory SYNOPSIS void kfree_const (const void *x ); ARGUMENTS x pointer to the memory DESCRIPTION Function calls kfree only if x is not in .rodata section. SEE ALSO Kernel file ./mm/util.c __kmemdup_nul(9), kstrdup(9), kstrdup_const(9), kstrndup(9), kmemdup(9), kmemdup...
kfree_rcu(9)
NAME kfree_rcu - kfree an object after a grace period. SYNOPSIS kfree_rcu (ptr , rhf ); ARGUMENTS ptr pointer to kfree for double-argument invocations. rhf the name of the struct rcu_head within the type of ptr. DESCRIPTION Many rcu callbacks functions just call kfree on the base structur...
kfree_rcu_mightsleep(9)
NAME kfree_rcu_mightsleep - kfree an object after a grace period. SYNOPSIS kfree_rcu_mightsleep (ptr ); ARGUMENTS ptr pointer to kfree for single-argument invocations. DESCRIPTION When it comes to head-less variant, only one argument is passed and that is just a pointer which has to be freed after a grace...
kfree_sensitive(9)
NAME kfree_sensitive - Clear sensitive information in memory before freeing SYNOPSIS void kfree_sensitive (const void *p ); ARGUMENTS p object to free memory of DESCRIPTION The memory of the object p points to is zeroed before freed. If p is NULL, kfree_sensitive does nothing. NOTE this function zeroes t...
kfree_skb(9)
NAME kfree_skb - free an sk_buff with 'NOT_SPECIFIED' reason SYNOPSIS void kfree_skb (struct sk_buff *skb ); ARGUMENTS skb buffer to free SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_frag_must_loop(9), skb...
kfree_strarray(9)
NAME kfree_strarray - free a number of dynamically allocated strings contained in an array and the array itself SYNOPSIS void kfree_strarray (char **array , size_t n ); ARGUMENTS array Dynamically allocated array of strings to free. n Number of strings (starting from the beginning of the array...
kgd2kfd_vmfault_fast_path(9)
NAME kgd2kfd_vmfault_fast_path - KFD vm page fault interrupt handling fast path for gmc v9 SYNOPSIS bool kgd2kfd_vmfault_fast_path (struct amdgpu_device *adev , struct amdgpu_iv_entry *entry , bool retry_fault ); ARGUMENTS adev amdgpu device entry vm fault interrupt vector retry_fault if ...
kgd_gfx_v9_get_cu_occupancy(9)
NAME kgd_gfx_v9_get_cu_occupancy - Reads relevant registers associated with each shader engine and aggregates the number of waves that are in flight for the process whose pasid is provided as a parameter. The process could have ZERO or more queues running and submitting waves to compute units. SYNOPSIS void kgd_gf...
kgdb_arch_exit(9)
NAME kgdb_arch_exit - Perform any architecture specific uninitalization. SYNOPSIS void kgdb_arch_exit (void ); ARGUMENTS void no arguments DESCRIPTION This function will handle the uninitalization of any architecture specific callbacks, for dynamic registration and unregistration. SEE ALSO Kernel file ./...
kgdb_arch_handle_exception(9)
NAME kgdb_arch_handle_exception - Handle architecture specific GDB packets. SYNOPSIS int kgdb_arch_handle_exception (int vector , int signo , int err_code , char *remcom_in_buffer , char *remcom_out_buffer , struct pt_regs *regs ); ARGUMENTS vector The error vector of the exception that happened. signo ...
kgdb_arch_handle_qxfer_pkt(9)
NAME kgdb_arch_handle_qxfer_pkt - Handle architecture specific GDB XML packets. SYNOPSIS void kgdb_arch_handle_qxfer_pkt (char *remcom_in_buffer , char *remcom_out_buffer ); ARGUMENTS remcom_in_buffer The buffer of the packet we have read. remcom_out_buffer The buffer of BUFMAX bytes to wri...
kgdb_arch_init(9)
NAME kgdb_arch_init - Perform any architecture specific initialization. SYNOPSIS int kgdb_arch_init (void ); ARGUMENTS void no arguments DESCRIPTION This function will handle the initialization of any architecture specific callbacks. SEE ALSO Kernel file ./include/linux/kgdb.h kgdb_skipexception(9), ...
kgdb_arch_late(9)
NAME kgdb_arch_late - Perform any architecture specific initialization. SYNOPSIS void kgdb_arch_late (void ); ARGUMENTS void no arguments DESCRIPTION This function will handle the late initialization of any architecture specific callbacks. This is an optional function for handling things like late initi...
kgdb_arch_set_pc(9)
NAME kgdb_arch_set_pc - Generic call back to the program counter SYNOPSIS void kgdb_arch_set_pc (struct pt_regs *regs , unsigned long pc ); ARGUMENTS regs Current struct pt_regs. pc The new value for the program counter DESCRIPTION This function handles updating the program counter and requir...
kgdb_breakpoint(9)
NAME kgdb_breakpoint - generate breakpoint exception SYNOPSIS void kgdb_breakpoint (void ); ARGUMENTS void no arguments DESCRIPTION This function will generate a breakpoint exception. It is used at the beginning of a program to sync up with a debugger and can be used otherwise as a quick means to stop progra...
kgdb_call_nmi_hook(9)
NAME kgdb_call_nmi_hook - Call kgdb_nmicallback() on the current CPU SYNOPSIS void kgdb_call_nmi_hook (void *ignored ); ARGUMENTS ignored This parameter is only here to match the prototype. DESCRIPTION If you're using the default implementation of kgdb_roundup_cpus this function will be called per CPU. If you d...
kgdb_disable_hw_debug(9)
NAME kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb. SYNOPSIS void kgdb_disable_hw_debug (struct pt_regs *regs ); ARGUMENTS regs Current struct pt_regs. DESCRIPTION This function will be called if the particular architecture must disable hardware debugging while it is processing gdb packe...
kgdb_register_io_module(9)
NAME kgdb_register_io_module - register KGDB IO module SYNOPSIS int kgdb_register_io_module (struct kgdb_io *new_dbg_io_ops ); ARGUMENTS new_dbg_io_ops the io ops vector DESCRIPTION Register it with the KGDB core. SEE ALSO Kernel file ./kernel/debug/debug_core.c kgdb_unregister_io_module(9), kgdb_breakpoint(9) Apr...
kgdb_roundup_cpus(9)
NAME kgdb_roundup_cpus - Get other CPUs into a holding pattern SYNOPSIS void kgdb_roundup_cpus (void ); ARGUMENTS void no arguments DESCRIPTION On SMP systems, we need to get the attention of the other CPUs and get them into a known state. This should do what is needed to get the other CPUs to call kgdb_...
kgdb_skipexception(9)
NAME kgdb_skipexception - (optional) exit kgdb_handle_exception early SYNOPSIS int kgdb_skipexception (int exception , struct pt_regs *regs ); ARGUMENTS exception Exception vector number regs Current struct pt_regs. DESCRIPTION On some architectures it is required to skip a breakpoint exception when...
kgdb_unregister_io_module(9)
NAME kgdb_unregister_io_module - unregister KGDB IO module SYNOPSIS void kgdb_unregister_io_module (struct kgdb_io *old_dbg_io_ops ); ARGUMENTS old_dbg_io_ops the io ops vector DESCRIPTION Unregister it with the KGDB core. SEE ALSO Kernel file ./kernel/debug/debug_core.c kgdb_register_io_module(9), kgdb_breakpoint(...
kho_add_subtree(9)
NAME kho_add_subtree - record the physical address of a sub FDT in KHO root tree. SYNOPSIS int kho_add_subtree (const char *name , void *fdt ); ARGUMENTS name name of the sub tree. fdt the sub tree blob. DESCRIPTION Creates a new child node named name in KHO root FDT and records the physical a...
kho_alloc_preserve(9)
NAME kho_alloc_preserve - Allocate, zero, and preserve memory. SYNOPSIS void * kho_alloc_preserve (size_t size ); ARGUMENTS size The number of bytes to allocate. DESCRIPTION Allocates a physically contiguous block of zeroed pages that is large enough to hold size bytes. The allocated memory is then registered...
kho_preserve_folio(9)
NAME kho_preserve_folio - preserve a folio across kexec. SYNOPSIS int kho_preserve_folio (struct folio *folio ); ARGUMENTS folio folio to preserve. DESCRIPTION Instructs KHO to preserve the whole folio across kexec. The order will be preserved as well. RETURN 0 on success, error code on failure SEE ALSO Kern...