| /linux/tools/include/linux/ |
| H A D | gfp_types.h | 10 * typedef gfp_t - Memory allocation flags. 18 typedef unsigned int __bitwise gfp_t; 106 #define __GFP_DMA ((__force gfp_t)___GFP_DMA) 107 #define __GFP_HIGHMEM ((__force gfp_t)___GFP_HIGHMEM) 108 #define __GFP_DMA32 ((__force gfp_t)___GFP_DMA32) 109 #define __GFP_MOVABLE ((__force gfp_t)___GFP_MOVABLE) /* ZONE_MOVABLE allowed */ 139 #define __GFP_RECLAIMABLE ((__force gfp_t)___GFP_RECLAIMABLE) 140 #define __GFP_WRITE ((__force gfp_t)___GFP_WRITE) 141 #define __GFP_HARDWALL ((__force gfp_t)___GFP_HARDWALL) 142 #define __GFP_THISNODE ((__force gfp_t)___GFP_THISNOD [all...] |
| H A D | slab.h | 33 void *kmalloc(size_t size, gfp_t gfp); 35 void *kmalloc_array(size_t n, size_t size, gfp_t gfp); 138 static inline void *kzalloc(size_t size, gfp_t gfp) in kzalloc() 186 bool kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size, 189 kmem_cache_prefill_sheaf(struct kmem_cache *s, gfp_t gfp, unsigned int size); 192 kmem_cache_alloc_from_sheaf(struct kmem_cache *s, gfp_t gfp, 195 void kmem_cache_return_sheaf(struct kmem_cache *s, gfp_t gfp, 197 int kmem_cache_refill_sheaf(struct kmem_cache *s, gfp_t gfp,
|
| /linux/include/linux/ |
| H A D | kmemleak.h | 19 gfp_t gfp) __ref; 21 gfp_t gfp) __ref; 23 gfp_t gfp) __ref; 32 extern void kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp) __ref; 35 gfp_t gfp) __ref; 41 gfp_t gfp) in kmemleak_alloc_recursive() 64 gfp_t gfp) in kmemleak_alloc() 69 gfp_t gfp) in kmemleak_alloc_recursive() 73 gfp_t gfp) in kmemleak_alloc_percpu() 77 gfp_t gfp) in kmemleak_vmalloc() [all …]
|
| H A D | xarray.h | 271 #define XA_FLAGS_LOCK_IRQ ((__force gfp_t)XA_LOCK_IRQ) 272 #define XA_FLAGS_LOCK_BH ((__force gfp_t)XA_LOCK_BH) 273 #define XA_FLAGS_TRACK_FREE ((__force gfp_t)4U) 274 #define XA_FLAGS_ZERO_BUSY ((__force gfp_t)8U) 275 #define XA_FLAGS_ALLOC_WRAPPED ((__force gfp_t)16U) 276 #define XA_FLAGS_ACCOUNT ((__force gfp_t)32U) 277 #define XA_FLAGS_MARK(mark) ((__force gfp_t)((1U << __GFP_BITS_SHIFT) << \ 303 gfp_t xa_flags; 356 void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t); 359 void *entry, gfp_t); [all …]
|
| H A D | slab.h | 547 gfp_t flags, int nid) __realloc_size(2); 588 void *krealloc_node_align(const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid… 753 static __always_inline enum kmalloc_cache_type kmalloc_type(gfp_t flags, kmalloc_token_t token) in kmalloc_type() 855 gfp_t flags) __assume_slab_alignment __malloc; 859 gfp_t gfpflags) __assume_slab_alignment __malloc; 890 bool kmem_cache_charge(void *objp, gfp_t gfpflags); 906 bool kmem_cache_alloc_bulk_noprof(struct kmem_cache *s, gfp_t flags, 916 void *kmem_cache_alloc_node_noprof(struct kmem_cache *s, gfp_t flags, 921 kmem_cache_prefill_sheaf(struct kmem_cache *s, gfp_t gfp, unsigned int size); 923 int kmem_cache_refill_sheaf(struct kmem_cache *s, gfp_t gfp, [all …]
|
| H A D | devcoredump.h | 58 gfp_t gfp); 61 void *data, size_t datalen, gfp_t gfp, 69 size_t datalen, gfp_t gfp); 74 size_t datalen, gfp_t gfp) in dev_coredumpv() 81 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm_timeout() 92 size_t datalen, gfp_t gfp) in dev_coredumpsg() 117 void *data, size_t datalen, gfp_t gfp, in dev_coredumpm()
|
| H A D | idr.h | 33 #define IDR_RT_MARKER (ROOT_IS_IDR | (__force gfp_t) \ 113 void idr_preload(gfp_t gfp_mask); 115 int idr_alloc(struct idr *, void *ptr, int start, int end, gfp_t); 117 unsigned long max, gfp_t); 118 int idr_alloc_cyclic(struct idr *, void *ptr, int start, int end, gfp_t); 142 struct idr *idr, void *ptr, int start, int end, gfp_t gfp); 274 int ida_alloc_range(struct ida *, unsigned int min, unsigned int max, gfp_t); 291 static inline int ida_alloc(struct ida *ida, gfp_t gfp) in ida_alloc() 309 static inline int ida_alloc_min(struct ida *ida, unsigned int min, gfp_t gfp) in ida_alloc_min() 327 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max()
|
| H A D | kmsan.h | 69 void kmsan_alloc_page(struct page *page, unsigned int order, gfp_t flags); 100 void kmsan_slab_alloc(struct kmem_cache *s, void *object, gfp_t flags); 119 void kmsan_kmalloc_large(const void *ptr, size_t size, gfp_t flags); 147 gfp_t gfp_mask); 320 gfp_t flags) in kmsan_alloc_page() 333 gfp_t flags) in kmsan_slab_alloc() 342 gfp_t flags) in kmsan_kmalloc_large() 352 struct page **pages, unsigned int page_shift, gfp_t gfp_mask) in kmsan_vmap_pages_range_noflush()
|
| H A D | string_helpers.h | 113 char *kstrdup_quotable(const char *src, gfp_t gfp); 114 char *kstrdup_quotable_cmdline(struct task_struct *task, gfp_t gfp); 115 char *kstrdup_quotable_file(struct file *file, gfp_t gfp); 117 char *kstrdup_and_replace(const char *src, char old, char new, gfp_t gfp); 119 char **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n);
|
| H A D | virtio.h | 58 gfp_t gfp); 63 gfp_t gfp); 68 gfp_t gfp); 74 gfp_t gfp); 80 gfp_t gfp); 85 gfp_t gfp); 92 gfp_t gfp); 290 gfp_t gfp);
|
| H A D | fault-inject.h | 117 bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order); 119 static inline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) in should_fail_alloc_page() 126 int should_failslab(struct kmem_cache *s, gfp_t gfpflags); 128 static inline int should_failslab(struct kmem_cache *s, gfp_t gfpflags) in should_failslab()
|
| H A D | bio-integrity.h | 77 struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio, gfp_t gfp, 87 int bio_integrity_clone(struct bio *bio, struct bio *bio_src, gfp_t gfp_mask); 115 gfp_t gfp_mask) in bio_integrity_clone() 135 bio_integrity_alloc(struct bio *bio, gfp_t gfp, unsigned int nr) in bio_integrity_alloc() 147 void bio_integrity_alloc_buf(struct bio *bio, gfp_t gfp, bool zero_buffer);
|
| /linux/include/net/sctp/ |
| H A D | ulpevent.h | 81 gfp_t gfp); 90 gfp_t gfp); 96 gfp_t gfp); 103 gfp_t gfp); 108 gfp_t gfp); 113 __u32 flags, gfp_t gfp); 116 const struct sctp_association *asoc, gfp_t gfp); 120 gfp_t gfp); 124 __u32 indication, gfp_t gfp); 127 const struct sctp_association *asoc, gfp_t gfp); [all …]
|
| H A D | stream_interleave.h | 25 int len, __u8 flags, gfp_t gfp); 29 struct sctp_chunk *chunk, gfp_t gfp); 33 struct sctp_chunk *chunk, gfp_t gfp); 34 void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp); 35 void (*abort_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
|
| H A D | ulpqueue.h | 43 int sctp_ulpq_tail_data(struct sctp_ulpq *, struct sctp_chunk *, gfp_t); 49 void sctp_ulpq_renege(struct sctp_ulpq *, struct sctp_chunk *, gfp_t); 52 void sctp_ulpq_partial_delivery(struct sctp_ulpq *, gfp_t); 55 void sctp_ulpq_abort_pd(struct sctp_ulpq *, gfp_t);
|
| H A D | auth.h | 67 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp); 69 int sctp_auth_asoc_init_active_key(struct sctp_association *asoc, gfp_t gfp); 75 gfp_t gfp); 91 struct sctp_shared_key *ep_key, gfp_t gfp); 107 int sctp_auth_init(struct sctp_endpoint *ep, gfp_t gfp);
|
| /linux/rust/bindings/ |
| H A D | bindings_helper.h | 118 const gfp_t RUST_CONST_HELPER_GFP_ATOMIC = GFP_ATOMIC; 119 const gfp_t RUST_CONST_HELPER_GFP_KERNEL = GFP_KERNEL; 120 const gfp_t RUST_CONST_HELPER_GFP_KERNEL_ACCOUNT = GFP_KERNEL_ACCOUNT; 121 const gfp_t RUST_CONST_HELPER_GFP_NOWAIT = GFP_NOWAIT; 122 const gfp_t RUST_CONST_HELPER___GFP_ZERO = __GFP_ZERO; 123 const gfp_t RUST_CONST_HELPER___GFP_HIGHMEM = ___GFP_HIGHMEM; 124 const gfp_t RUST_CONST_HELPER___GFP_NOWARN = ___GFP_NOWARN; 130 const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC = XA_FLAGS_ALLOC; 131 const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC1 = XA_FLAGS_ALLOC1;
|
| /linux/include/net/ |
| H A D | handshake.h | 36 int tls_client_hello_anon(const struct tls_handshake_args *args, gfp_t flags); 37 int tls_client_hello_x509(const struct tls_handshake_args *args, gfp_t flags); 38 int tls_client_hello_psk(const struct tls_handshake_args *args, gfp_t flags); 39 int tls_server_hello_x509(const struct tls_handshake_args *args, gfp_t flags); 40 int tls_server_hello_psk(const struct tls_handshake_args *args, gfp_t flags);
|
| /linux/tools/virtio/linux/ |
| H A D | kernel.h | 57 static inline void *kmalloc(size_t s, gfp_t gfp) in kmalloc() 63 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) in kmalloc_array() 74 static inline void *kzalloc(size_t s, gfp_t gfp) in kzalloc() 82 static inline void *alloc_pages_exact(size_t s, gfp_t gfp) in kfree() 99 static inline void *krealloc(void *p, size_t s, gfp_t gfp) in __get_free_page() 105 static inline unsigned long __get_free_page(gfp_t gfp) in __get_free_page() 125 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) in krealloc_array()
|
| /linux/fs/btrfs/ |
| H A D | ulist.h | 50 struct ulist *ulist_alloc(gfp_t gfp_mask); 51 void ulist_prealloc(struct ulist *ulist, gfp_t mask); 53 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask); 55 u64 *old_aux, gfp_t gfp_mask); 60 void **old_aux, gfp_t gfp_mask) in ulist_add_merge_ptr()
|
| /linux/security/apparmor/include/ |
| H A D | label.h | 61 gfp_t gfp); 268 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp); 269 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp); 288 gfp_t gfp); 291 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp); 301 int flags, gfp_t gfp); 303 struct aa_label *label, int flags, gfp_t gfp); 305 struct aa_label *label, int flags, gfp_t gfp); 307 struct aa_label *label, int flags, gfp_t gfp); 309 gfp_t gfp); [all …]
|
| /linux/include/linux/sched/ |
| H A D | mm.h | 248 static inline gfp_t current_gfp_context(gfp_t flags) 271 extern void fs_reclaim_acquire(gfp_t gfp_mask); 272 extern void fs_reclaim_release(gfp_t gfp_mask); 276 static inline void fs_reclaim_acquire(gfp_t gfp_mask) { } in __fs_reclaim_release() 277 static inline void fs_reclaim_release(gfp_t gfp_mask) { } in fs_reclaim_acquire() 287 static inline void memalloc_retry_wait(gfp_t gfp_flags) 308 * @gfp_mask: gfp_t flags that would be used to allocate 314 static inline void might_alloc(gfp_t gfp_mask)
|
| /linux/arch/powerpc/include/asm/ |
| H A D | pgalloc.h | 8 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) in pgtable_gfp_flags() 15 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) in pgtable_gfp_flags()
|
| /linux/tools/virtio/ringtest/ |
| H A D | ptr_ring.c | 24 typedef int gfp_t; typedef 27 static void *kmalloc(unsigned size, gfp_t gfp) in kmalloc() 38 static inline void *kzalloc(unsigned size, gfp_t flags) in kzalloc() 43 static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) in kmalloc_array() 50 static inline void *kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc()
|
| /linux/include/drm/ttm/ |
| H A D | ttm_backup.h | 58 pgoff_t handle, bool intr, gfp_t additional_gfp); 63 gfp_t folio_gfp, gfp_t alloc_gfp,
|