id
stringlengths
4
63
text
stringlengths
153
8.81M
memblock_insert_region(9)
NAME memblock_insert_region - insert new memblock region SYNOPSIS void __init_memblock memblock_insert_region (struct memblock_type *type , int idx , phys_addr_t base , phys_addr_t size , int nid , enum memblock_flags flags ); ARGUMENTS type memblock type to insert into idx index for the insert...
memblock_is_region_memory(9)
NAME memblock_is_region_memory - check if a region is a subset of memory SYNOPSIS bool __init_memblock memblock_is_region_memory (phys_addr_t base , phys_addr_t size ); ARGUMENTS base base of region to check size size of region to check DESCRIPTION Check if the region [base, base + size) is a s...
memblock_is_region_reserved(9)
NAME memblock_is_region_reserved - check if a region intersects reserved memory SYNOPSIS bool __init_memblock memblock_is_region_reserved (phys_addr_t base , phys_addr_t size ); ARGUMENTS base base of region to check size size of region to check DESCRIPTION Check if the region [base, base + siz...
memblock_isolate_range(9)
NAME memblock_isolate_range - isolate given range into disjoint memblocks SYNOPSIS int __init_memblock memblock_isolate_range (struct memblock_type *type , phys_addr_t base , phys_addr_t size , int *start_rgn , int *end_rgn ); ARGUMENTS type memblock type to isolate range for base base of range ...
memblock_mark_hotplug(9)
NAME memblock_mark_hotplug - Mark hotpluggable memory with flag MEMBLOCK_HOTPLUG. SYNOPSIS int __init_memblock memblock_mark_hotplug (phys_addr_t base , phys_addr_t size ); ARGUMENTS base the base phys addr of the region size the size of the region RETURN 0 on success, -errno on failure. SEE A...
memblock_mark_kho_scratch(9)
NAME memblock_mark_kho_scratch - Mark a memory region as MEMBLOCK_KHO_SCRATCH. SYNOPSIS int memblock_mark_kho_scratch (phys_addr_t base , phys_addr_t size ); ARGUMENTS base the base phys addr of the region size the size of the region DESCRIPTION Only memory regions marked with MEMBLOCK_KHO_SCRA...
memblock_mark_mirror(9)
NAME memblock_mark_mirror - Mark mirrored memory with flag MEMBLOCK_MIRROR. SYNOPSIS int __init_memblock memblock_mark_mirror (phys_addr_t base , phys_addr_t size ); ARGUMENTS base the base phys addr of the region size the size of the region RETURN 0 on success, -errno on failure. SEE ALSO Ker...
memblock_mark_nomap(9)
NAME memblock_mark_nomap - Mark a memory region with flag MEMBLOCK_NOMAP. SYNOPSIS int __init_memblock memblock_mark_nomap (phys_addr_t base , phys_addr_t size ); ARGUMENTS base the base phys addr of the region size the size of the region DESCRIPTION The memory regions marked with MEMBLOCK_NOM...
memblock_merge_regions(9)
NAME memblock_merge_regions - merge neighboring compatible regions SYNOPSIS void __init_memblock memblock_merge_regions (struct memblock_type *type , unsigned long start_rgn , unsigned long end_rgn ); ARGUMENTS type memblock type to scan start_rgn start scanning from (start_rgn - 1) end_rgn ...
memblock_phys_alloc_range(9)
NAME memblock_phys_alloc_range - allocate a memory block inside specified range SYNOPSIS phys_addr_t memblock_phys_alloc_range (phys_addr_t size , phys_addr_t align , phys_addr_t start , phys_addr_t end ); ARGUMENTS size size of memory block to be allocated in bytes align alignment of the region ...
memblock_phys_alloc_try_nid(9)
NAME memblock_phys_alloc_try_nid - allocate a memory block from specified NUMA node SYNOPSIS phys_addr_t memblock_phys_alloc_try_nid (phys_addr_t size , phys_addr_t align , int nid ); ARGUMENTS size size of memory block to be allocated in bytes align alignment of the region and block's size ...
memblock_phys_free(9)
NAME memblock_phys_free - free boot memory block SYNOPSIS int __init_memblock memblock_phys_free (phys_addr_t base , phys_addr_t size ); ARGUMENTS base phys starting address of the boot memory block size size of the boot memory block in bytes DESCRIPTION Free boot memory block previously alloc...
memblock_region_memory_base_pfn(9)
NAME memblock_region_memory_base_pfn - get the lowest pfn of the memory region SYNOPSIS unsigned long memblock_region_memory_base_pfn (const struct memblock_region *reg ); ARGUMENTS reg memblock_region structure RETURN the lowest pfn intersecting with the memory region SEE ALSO Kernel file ./include/linux...
memblock_region_memory_end_pfn(9)
NAME memblock_region_memory_end_pfn - get the end pfn of the memory region SYNOPSIS unsigned long memblock_region_memory_end_pfn (const struct memblock_region *reg ); ARGUMENTS reg memblock_region structure RETURN the end_pfn of the reserved region SEE ALSO Kernel file ./include/linux/memblock.h enum me...
memblock_region_reserved_base_pfn(9)
NAME memblock_region_reserved_base_pfn - get the lowest pfn of the reserved region SYNOPSIS unsigned long memblock_region_reserved_base_pfn (const struct memblock_region *reg ); ARGUMENTS reg memblock_region structure RETURN the lowest pfn intersecting with the reserved region SEE ALSO Kernel file ./inclu...
memblock_region_reserved_end_pfn(9)
NAME memblock_region_reserved_end_pfn - get the end pfn of the reserved region SYNOPSIS unsigned long memblock_region_reserved_end_pfn (const struct memblock_region *reg ); ARGUMENTS reg memblock_region structure RETURN the end_pfn of the reserved region SEE ALSO Kernel file ./include/linux/memblock.h ...
memblock_reserved_mark_noinit(9)
NAME memblock_reserved_mark_noinit - Mark a reserved memory region with flag MEMBLOCK_RSRV_NOINIT SYNOPSIS int __init_memblock memblock_reserved_mark_noinit (phys_addr_t base , phys_addr_t size ); ARGUMENTS base the base phys addr of the region size the size of the region DESCRIPTION The struc...
memblock_set_current_limit(9)
NAME memblock_set_current_limit - Set the current allocation limit to allow limiting allocations to what is currently accessible during boot SYNOPSIS void memblock_set_current_limit (phys_addr_t limit ); ARGUMENTS limit New limit value (physical address) SEE ALSO Kernel file ./include/linux/memblock.h enum ...
memblock_set_node(9)
NAME memblock_set_node - set node ID on memblock regions SYNOPSIS int __init_memblock memblock_set_node (phys_addr_t base , phys_addr_t size , struct memblock_type *type , int nid ); ARGUMENTS base base of area to set node ID for size size of area to set node ID for type memblock ...
memblock_setclr_flag(9)
NAME memblock_setclr_flag - set or clear flag for a memory region SYNOPSIS int __init_memblock memblock_setclr_flag (struct memblock_type *type , phys_addr_t base , phys_addr_t size , int set , int flag ); ARGUMENTS type memblock type to set/clear flag for base base address of the region ...
memblock_validate_numa_coverage(9)
NAME memblock_validate_numa_coverage - check if amount of memory with no node ID assigned is less than a threshold SYNOPSIS bool __init_memblock memblock_validate_numa_coverage (unsigned long threshold_bytes ); ARGUMENTS threshold_bytes maximal memory size that can have unassigned node ID (in bytes). DESCRIPTION A b...
memccpy(3)
NAME memccpy - copy memory area LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> void *memccpy(size_t n; void dest[restrict n], const void src[restrict n], int c, size_t n); DESCRIPTION The memccpy() function copies no more than n bytes from memory...
memccpy(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME memccpy — copy bytes in memory SYNOPSIS #include <string.h> ...
memcg1_swapout(9)
NAME memcg1_swapout - transfer a memsw charge to swap SYNOPSIS void memcg1_swapout (struct folio *folio , swp_entry_t entry ); ARGUMENTS folio folio whose memsw charge to transfer entry swap entry to move the charge to DESCRIPTION Transfer the memsw charge of folio to entry. SEE ALSO Kernel file...
memchr(3)
NAME memchr, memrchr, rawmemchr - scan memory for a character LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> void *memchr(size_t n; const void s[n], int c, size_t n); void *memrchr(size_t n; const void s[n], int c, size_t n); [[deprec...
memchr(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME memchr — find byte in memory SYNOPSIS #include <string.h> ...
memchr(9)
NAME memchr - Find a character in an area of memory. SYNOPSIS void * memchr (const void *s , int c , size_t n ); ARGUMENTS s The memory area c The byte to search for n The size of the area. DESCRIPTION returns the address of the first occurrence of c, or NULL if c is not...
memchr_inv(9)
NAME memchr_inv - Find an unmatching character in an area of memory. SYNOPSIS void * memchr_inv (const void *start , int c , size_t bytes ); ARGUMENTS start The memory area c Find a character other than c bytes The size of the area. DESCRIPTION returns the address of the first c...
memcmp(3)
NAME memcmp - compare memory areas LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> int memcmp(size_t n; const void s1[n], const void s2[n], size_t n); DESCRIPTION The memcmp() function compares the first n bytes (each interpreted as unsigned char) of the memory areas s1 ...
memcmp(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME memcmp — compare bytes in memory SYNOPSIS #include <string.h> ...
memcmp(9)
NAME memcmp - Compare two areas of memory SYNOPSIS __visible int memcmp (const void *cs , const void *ct , size_t count ); ARGUMENTS cs One area of memory ct Another area of memory count The size of the area. SEE ALSO Kernel file ./lib/string.c strncasecmp(9), stpcpy(9), ...
memcpy(3)
NAME memcpy - copy memory area LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> void *memcpy(size_t n; void dest[restrict n], const void src[restrict n], size_t n); DESCRIPTION The memcpy() function copies n bytes from memory area src to memory area ...
memcpy(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME memcpy — copy bytes in memory SYNOPSIS #include <string.h> ...
memcpy(9)
NAME memcpy - Copy one area of memory to another SYNOPSIS void * memcpy (void *dest , const void *src , size_t count ); ARGUMENTS dest Where to copy to src Where to copy from count The size of the area. DESCRIPTION You should not use this function to access IO space, use memcpy_t...
memcpy_and_pad(9)
NAME memcpy_and_pad - Copy one buffer to another with padding SYNOPSIS void memcpy_and_pad (void *dest , size_t dest_len , const void *src , size_t count , int pad ); ARGUMENTS dest Where to copy to dest_len The destination buffer size src Where to copy from count The n...
memcpy_from_bvec(9)
NAME memcpy_from_bvec - copy data from a bvec SYNOPSIS void memcpy_from_bvec (char *to , struct bio_vec *bvec ); ARGUMENTS to -- undescribed -- bvec bvec to copy from DESCRIPTION Must be called on single-page bvecs only. SEE ALSO Kernel file ./include/linux/bvec.h struct bio_vec(9), bvec_set...
memcpy_from_file_folio(9)
NAME memcpy_from_file_folio - Copy some bytes from a file folio. SYNOPSIS size_t memcpy_from_file_folio (char *to , struct folio *folio , loff_t pos , size_t len ); ARGUMENTS to The destination buffer. folio The folio to copy from. pos The position in the file. len ...
memcpy_from_folio(9)
NAME memcpy_from_folio - Copy a range of bytes from a folio. SYNOPSIS void memcpy_from_folio (char *to , struct folio *folio , size_t offset , size_t len ); ARGUMENTS to The memory to copy to. folio The folio to read from. offset The first byte in the folio to read. len ...
memcpy_fromio(9)
NAME memcpy_fromio - Copy a block of data from I/O memory SYNOPSIS void memcpy_fromio (void *dst , const volatile void __iomem *src , size_t count ); ARGUMENTS dst The (RAM) destination for the copy src The (I/O memory) source for the data count The number of bytes to copy DESCR...
memcpy_sglist(9)
NAME memcpy_sglist - Copy data from one scatterlist to another SYNOPSIS void memcpy_sglist (struct scatterlist *dst , struct scatterlist *src , unsigned int nbytes ); ARGUMENTS dst The destination scatterlist. Can be NULL if nbytes == 0. src The source scatterlist. Can be NULL if nbytes == 0...
memcpy_to_bvec(9)
NAME memcpy_to_bvec - copy data to a bvec SYNOPSIS void memcpy_to_bvec (struct bio_vec *bvec , const char *from ); ARGUMENTS bvec bvec to copy to from -- undescribed -- DESCRIPTION Must be called on single-page bvecs only. SEE ALSO Kernel file ./include/linux/bvec.h struct bio_vec(9), bvec_set...
memcpy_to_folio(9)
NAME memcpy_to_folio - Copy a range of bytes to a folio. SYNOPSIS void memcpy_to_folio (struct folio *folio , size_t offset , const char *from , size_t len ); ARGUMENTS folio The folio to write to. offset The first byte in the folio to store to. from The memory to copy from. ...
memcpy_toio(9)
NAME memcpy_toio - Copy a block of data into I/O memory SYNOPSIS void memcpy_toio (volatile void __iomem *dst , const void *src , size_t count ); ARGUMENTS dst The (I/O memory) destination for the copy src The (RAM) source for the data count The number of bytes to copy DESCRIPTI...
memdup(9)
NAME memdup - duplicate region of memory SYNOPSIS void * memdup (const void *src , size_t len ); ARGUMENTS src memory region to duplicate len memory region length SEE ALSO Kernel file ./tools/lib/string.c strtobool(9), strlcpy(9), skip_spaces(9), strim(9), strreplace(9), memchr_inv(9) April ...
memdup_array_user(9)
NAME memdup_array_user - duplicate array from user space SYNOPSIS void * memdup_array_user (const void __user *src , size_t n , size_t size ); ARGUMENTS src source address in user space n number of array members to copy size size of one array member RETURN an ERR_PTR on failu...
memdup_user(9)
NAME memdup_user - duplicate memory region from user space SYNOPSIS void * memdup_user (const void __user *src , size_t len ); ARGUMENTS src source address in user space len number of bytes to copy RETURN an ERR_PTR on failure. Result is physically contiguous, to be freed by kfree. SEE ALSO...
memdup_user_nul(9)
NAME memdup_user_nul - duplicate memory region from user space and NUL-terminate SYNOPSIS void * memdup_user_nul (const void __user *src , size_t len ); ARGUMENTS src source address in user space len number of bytes to copy RETURN an ERR_PTR on failure. SEE ALSO Kernel file ./mm/util.c kf...
memeq(3)
NAME memeq - memory equal LIBRARY gnulib - The GNU Portability Library SYNOPSIS #include <string.h> bool memeq(const void *m1, const void *m2, size_t n); DESCRIPTION memeq() determines whether the first n bytes of the memory areas pointed to by m1 and m2 are equal. RETURN VALUE memeq() returns true if and o...
memfd_create(2)
NAME memfd_create - create an anonymous file LIBRARY Standard C library (libc, -lc) SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <sys/mman.h> int memfd_create(const char *name, unsigned int flags); DESCRIPTION memfd_create() creates an anonymous file and returns a file des...
memfd_pin_folios(9)
NAME memfd_pin_folios - pin folios associated with a memfd SYNOPSIS long memfd_pin_folios (struct file *memfd , loff_t start , loff_t end , struct folio **folios , unsigned int max_folios , pgoff_t *offset ); ARGUMENTS memfd the memfd whose folios are to be pinned start the first memfd offset ...
memfd_secret(2)
NAME memfd_secret - create an anonymous RAM-based file to access secret memory regions LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h> int syscall(SYS_memfd_secret, unsigned int flags); Note: glibc provides no wrappe...
memfrob(3)
NAME memfrob - frobnicate (obfuscate) a memory area LIBRARY Standard C library (libc, -lc) SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <string.h> void *memfrob(size_t n; void s[n], size_t n); DESCRIPTION The memfrob() function obfuscates the first n...
memmem(3)
NAME memmem - locate a substring LIBRARY Standard C library (libc, -lc) SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <string.h> void *memmem(size_t hsize, size_t nsize; const void haystack[hsize], size_t hsize, const void needle[nsize],...
memmove(3)
NAME memmove - copy memory area LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> void *memmove(size_t n; void dest[n], const void src[n], size_t n); DESCRIPTION The memmove() function copies n bytes from memory area src to memory area dest. The memory areas may overla...
memmove(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME memmove — copy bytes in memory with overlapping areas SYNOPSIS...
memmove(9)
NAME memmove - Copy one area of memory to another SYNOPSIS void * memmove (void *dest , const void *src , size_t count ); ARGUMENTS dest Where to copy to src Where to copy from count The size of the area. DESCRIPTION Unlike memcpy, memmove copes with overlapping areas. SEE ALSO ...
memory_block_add_nid_early(9)
NAME memory_block_add_nid_early - Indicate that early system RAM falling into this memory block device (partially) belongs to the given node. SYNOPSIS void memory_block_add_nid_early (struct memory_block *mem , int nid ); ARGUMENTS mem The memory block device. nid The node id. DESCRIPTION Ind...
memory_block_advise_max_size(9)
NAME memory_block_advise_max_size - advise memory hotplug on the max suggested block size, usually for alignment. SYNOPSIS int memory_block_advise_max_size (unsigned long size ); ARGUMENTS size suggestion for maximum block size. must be aligned on power of 2. DESCRIPTION Early boot software (pre-allocator ...
memory_block_advised_max_size(9)
NAME memory_block_advised_max_size - query advised max hotplug block size. SYNOPSIS unsigned long memory_block_advised_max_size (void ); ARGUMENTS void no arguments DESCRIPTION After the first call, the value can never change. Callers looking for the actual block size should use memory_block_size_bytes. This ...
memory_bm_create(9)
NAME memory_bm_create - Allocate memory for a memory bitmap. SYNOPSIS int memory_bm_create (struct memory_bitmap *bm , gfp_t gfp_mask , int safe_needed ); ARGUMENTS bm -- undescribed -- gfp_mask -- undescribed -- safe_needed -- undescribed -- SEE ALSO Kernel file ./kernel/power/snapshot...
memory_bm_find_bit(9)
NAME memory_bm_find_bit - Find the bit for a given PFN in a memory bitmap. SYNOPSIS int memory_bm_find_bit (struct memory_bitmap *bm , unsigned long pfn , void **addr , unsigned int *bit_nr ); ARGUMENTS bm -- undescribed -- pfn -- undescribed -- addr -- undescribed -- b...
memory_bm_free(9)
NAME memory_bm_free - Free memory occupied by the memory bitmap. SYNOPSIS void memory_bm_free (struct memory_bitmap *bm , int clear_nosave_free ); ARGUMENTS bm Memory bitmap. clear_nosave_free -- undescribed -- SEE ALSO Kernel file ./kernel/power/snapshot.c get_image_page(9), ...
memory_bm_next_pfn(9)
NAME memory_bm_next_pfn - Find the next set bit in a memory bitmap. SYNOPSIS unsigned long memory_bm_next_pfn (struct memory_bitmap *bm ); ARGUMENTS bm Memory bitmap. DESCRIPTION Starting from the last returned position this function searches for the next set bit in bm and returns the PFN represented by it....
memory_contains(9)
NAME memory_contains - checks if an object is contained within a memory region SYNOPSIS bool memory_contains (void *begin , void *end , void *virt , size_t size ); ARGUMENTS begin virtual address of the beginning of the memory region end virtual address of the end of the memory region vi...
memory_failure(9)
NAME memory_failure - Handle memory failure of a page. SYNOPSIS int memory_failure (unsigned long pfn , int flags ); ARGUMENTS pfn Page Number of the corrupted page flags fine tune action taken DESCRIPTION This function is called by the low level machine check code of an architecture when it de...
memory_failure_pfn(9)
NAME memory_failure_pfn - Handle memory failure on a page not backed by struct page. SYNOPSIS int memory_failure_pfn (unsigned long pfn , int flags ); ARGUMENTS pfn Page Number of the corrupted page flags fine tune action taken RETURN 0 - success, -EBUSY - Page PFN does not b...
memory_failure_queue(9)
NAME memory_failure_queue - Schedule handling memory failure of a page. SYNOPSIS void memory_failure_queue (unsigned long pfn , int flags ); ARGUMENTS pfn Page Number of the corrupted page flags Flags for memory failure handling DESCRIPTION This function is called by the low level hardware err...
memory_group_register_dynamic(9)
NAME memory_group_register_dynamic - Register a dynamic memory group. SYNOPSIS int memory_group_register_dynamic (int nid , unsigned long unit_pages ); ARGUMENTS nid The node id. unit_pages Unit in pages in which is memory added/removed in this dynamic memory group. DESCRIPTION Register a new dyn...
memory_group_register_static(9)
NAME memory_group_register_static - Register a static memory group. SYNOPSIS int memory_group_register_static (int nid , unsigned long max_pages ); ARGUMENTS nid The node id. max_pages The maximum number of pages we'll have in this static memory group. DESCRIPTION Register a new static memory gro...
memory_group_unregister(9)
NAME memory_group_unregister - Unregister a memory group. SYNOPSIS int memory_group_unregister (int mgid ); ARGUMENTS mgid the memory group id DESCRIPTION Unregister a memory group. If any memory block still belongs to this memory group, unregistering will fail. Returns -EINVAL if the memory group id is ...
memory_intersects(9)
NAME memory_intersects - checks if the region occupied by an object intersects with another memory region SYNOPSIS bool memory_intersects (void *begin , void *end , void *virt , size_t size ); ARGUMENTS begin virtual address of the beginning of the memory region end virtual address of the end of...
memory_map_bottom_up(9)
NAME memory_map_bottom_up - Map [map_start, map_end) bottom up SYNOPSIS void memory_map_bottom_up (unsigned long map_start , unsigned long map_end ); ARGUMENTS map_start start address of the target memory range map_end end address of the target memory range DESCRIPTION This function will setup direct...
memory_map_top_down(9)
NAME memory_map_top_down - Map [map_start, map_end) top down SYNOPSIS void memory_map_top_down (unsigned long map_start , unsigned long map_end ); ARGUMENTS map_start start address of the target memory range map_end end address of the target memory range DESCRIPTION This function will setup direct mapp...
memory_read_from_buffer(9)
NAME memory_read_from_buffer - copy data from the buffer SYNOPSIS ssize_t memory_read_from_buffer (void *to , size_t count , loff_t *ppos , const void *from , size_t available ); ARGUMENTS to the kernel space buffer to read to count the maximum number of bytes to read ppos the cu...
memparse(9)
NAME memparse - parse a string with mem suffixes into a number SYNOPSIS unsigned long long memparse (const char *ptr , char **retptr ); ARGUMENTS ptr Where parse begins retptr (output) Optional pointer to next char after parse completes DESCRIPTION Parses a string into a number. The number stor...
mempcpy(3)
NAME mempcpy, wmempcpy - copy memory area LIBRARY Standard C library (libc, -lc) SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <string.h> void *mempcpy(size_t n; void dest[restrict n], const void src[restrict n], size_t n); #d...
mempool_alloc(9)
NAME mempool_alloc - allocate an element from a memory pool SYNOPSIS void * mempool_alloc (struct mempool *pool , gfp_t gfp_mask ); ARGUMENTS pool pointer to the memory pool gfp_mask GFP_* flags. __GFP_ZERO is not supported. DESCRIPTION Allocate an element from pool. This is done by first ca...
mempool_alloc_bulk(9)
NAME mempool_alloc_bulk - allocate multiple elements from a memory pool SYNOPSIS int mempool_alloc_bulk (struct mempool *pool , void **elems , unsigned int count , unsigned int allocated ); ARGUMENTS pool pointer to the memory pool elems partially or fully populated elements array count ...
mempool_alloc_preallocated(9)
NAME mempool_alloc_preallocated - allocate an element from preallocated elements belonging to a memory pool SYNOPSIS void * mempool_alloc_preallocated (struct mempool *pool ); ARGUMENTS pool pointer to the memory pool DESCRIPTION This function is similar to mempool_alloc, but it only attempts allocating an el...
mempool_create_node(9)
NAME mempool_create_node - create a memory pool SYNOPSIS struct mempool * mempool_create_node (int min_nr , mempool_alloc_t *alloc_fn , mempool_free_t *free_fn , void *pool_data , gfp_t gfp_mask , int node_id ); ARGUMENTS min_nr the minimum number of elements guaranteed to be allocated for this pool. all...
mempool_destroy(9)
NAME mempool_destroy - deallocate a memory pool SYNOPSIS void mempool_destroy (struct mempool *pool ); ARGUMENTS pool pointer to the memory pool which was allocated via mempool_create. DESCRIPTION Free all reserved elements in pool and pool itself. This function only sleeps if the free_fn function sleeps. S...
mempool_exit(9)
NAME mempool_exit - exit a mempool initialized with mempool_init() SYNOPSIS void mempool_exit (struct mempool *pool ); ARGUMENTS pool pointer to the memory pool which was initialized with mempool_init. DESCRIPTION Free all reserved elements in pool and pool itself. This function only sleeps if the free_fn fu...
mempool_free(9)
NAME mempool_free - return an element to the pool. SYNOPSIS void mempool_free (void *element , struct mempool *pool ); ARGUMENTS element element to return pool pointer to the memory pool DESCRIPTION Returns element to pool if it needs replenishing, else frees it using the free_fn callback in pool....
mempool_free_bulk(9)
NAME mempool_free_bulk - return elements to a mempool SYNOPSIS unsigned int mempool_free_bulk (struct mempool *pool , void **elems , unsigned int count ); ARGUMENTS pool pointer to the memory pool elems elements to return count number of elements to return DESCRIPTION Returns a num...
mempool_init(9)
NAME mempool_init - initialize a memory pool SYNOPSIS int mempool_init (struct mempool *pool , int min_nr , mempool_alloc_t *alloc_fn , mempool_free_t *free_fn , void *pool_data ); ARGUMENTS pool pointer to the memory pool that should be initialized min_nr the minimum number of elements guaranteed...
mempool_resize(9)
NAME mempool_resize - resize an existing memory pool SYNOPSIS int mempool_resize (struct mempool *pool , int new_min_nr ); ARGUMENTS pool pointer to the memory pool which was allocated via mempool_create. new_min_nr the new minimum number of elements guaranteed to be allocated for this pool. DESCRIPT...
memrchr(3)
NAME memchr, memrchr, rawmemchr - scan memory for a character LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> void *memchr(size_t n; const void s[n], int c, size_t n); void *memrchr(size_t n; const void s[n], int c, size_t n); [[deprec...
memremap(9)
NAME memremap - remap an iomem_resource as cacheable memory SYNOPSIS void * memremap (resource_size_t offset , size_t size , unsigned long flags ); ARGUMENTS offset iomem resource start address size size of remap flags any of MEMREMAP_WB, MEMREMAP_WT, MEMREMAP_WC, MEMREMAP_ENC, MEMRE...
memscan(9)
NAME memscan - Find a character in an area of memory. SYNOPSIS void * memscan (void *addr , int c , size_t size ); ARGUMENTS addr The memory area c The byte to search for size The size of the area. DESCRIPTION returns the address of the first occurrence of c, or 1 byte past th...
memset(3)
NAME memset - fill memory with a constant byte LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <string.h> void *memset(size_t n; void s[n], int c, size_t n); DESCRIPTION The memset() function fills the first n bytes of the memory area pointed to by s with the constant byte c. RE...
memset(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME memset — set bytes in memory SYNOPSIS #include <string.h> ...
memset(9)
NAME memset - Fill a region of memory with the given value SYNOPSIS void * memset (void *s , int c , size_t count ); ARGUMENTS s Pointer to the start of the area. c The byte to fill the area with count The size of the area. DESCRIPTION Do not use memset to access IO space, u...
memset16(9)
NAME memset16 - Fill a memory area with a uint16_t SYNOPSIS void * memset16 (uint16_t *s , uint16_t v , size_t count ); ARGUMENTS s Pointer to the start of the area. v The value to fill the area with count The number of values to store DESCRIPTION Differs from memset in that...
memset32(9)
NAME memset32 - Fill a memory area with a uint32_t SYNOPSIS void * memset32 (uint32_t *s , uint32_t v , size_t count ); ARGUMENTS s Pointer to the start of the area. v The value to fill the area with count The number of values to store DESCRIPTION Differs from memset in that...
memset64(9)
NAME memset64 - Fill a memory area with a uint64_t SYNOPSIS void * memset64 (uint64_t *s , uint64_t v , size_t count ); ARGUMENTS s Pointer to the start of the area. v The value to fill the area with count The number of values to store DESCRIPTION Differs from memset in that...
memset_after(9)
NAME memset_after - Set a value after a struct member to the end of a struct SYNOPSIS memset_after (obj , v , member ); ARGUMENTS obj Address of target struct instance v Byte value to repeatedly write member after which struct member to start writing bytes DESCRIPTION This is g...
memset_io(9)
NAME memset_io - Set a range of I/O memory to a constant value SYNOPSIS void memset_io (volatile void __iomem *addr , int val , size_t count ); ARGUMENTS addr The beginning of the I/O-memory range to set val The value to set the memory to count The number of bytes to set DESCRIPT...
memset_no_sanitize_memory(9)
NAME memset_no_sanitize_memory - Fill memory without KMSAN instrumentation. SYNOPSIS void * memset_no_sanitize_memory (void *s , int c , size_t n ); ARGUMENTS s address of kernel memory to fill. c constant byte to fill the memory with. n number of bytes to fill. DESCRIPT...
memset_startat(9)
NAME memset_startat - Set a value starting at a member to the end of a struct SYNOPSIS memset_startat (obj , v , member ); ARGUMENTS obj Address of target struct instance v Byte value to repeatedly write member struct member to start writing at DESCRIPTION Note that if there is...
memstick_add_host(9)
NAME memstick_add_host - start request processing on memstick host SYNOPSIS int memstick_add_host (struct memstick_host *host ); ARGUMENTS host host to use RETURN 0 on success or a negative error code on failure SEE ALSO Kernel file ./drivers/memstick/core/memstick.c memstick_detect_change(9), memstick_n...