__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_FS_H #define _LINUX_FS_H #include <linux/linkage.h> #include <linux/wait_bit.h> #include <linux/kdev_t.h> #include <linux/dcache.h> #include <linux/path.h> #include <linux/stat.h> #include <linux/cache.h> #include <linux/list.h> #include <linux/list_lru.h> #include <linux/llist.h> #include <linux/radix-tree.h> #include <linux/xarray.h> #include <linux/rbtree.h> #include <linux/init.h> #include <linux/pid.h> #include <linux/bug.h> #include <linux/mutex.h> #include <linux/rwsem.h> #include <linux/mm_types.h> #include <linux/capability.h> #include <linux/semaphore.h> #include <linux/fcntl.h> #include <linux/rculist_bl.h> #include <linux/atomic.h> #include <linux/shrinker.h> #include <linux/migrate_mode.h> #include <linux/uidgid.h> #include <linux/lockdep.h> #include <linux/percpu-rwsem.h> #include <linux/workqueue.h> #include <linux/delayed_call.h> #include <linux/uuid.h> #include <linux/errseq.h> #include <linux/ioprio.h> #include <linux/fs_types.h> #include <linux/build_bug.h> #include <linux/stddef.h> #include <linux/mount.h> #include <linux/cred.h> #include <linux/mnt_idmapping.h> #include <linux/slab.h> #include <linux/maple_tree.h> #include <linux/rw_hint.h> #include <linux/file_ref.h> #include <linux/unicode.h> #include <asm/byteorder.h> #include <uapi/linux/fs.h> struct backing_dev_info; struct bdi_writeback; struct bio; struct io_comp_batch; struct export_operations; struct fiemap_extent_info; struct hd_geometry; struct iovec; struct kiocb; struct kobject; struct pipe_inode_info; struct poll_table_struct; struct kstatfs; struct vm_area_struct; struct vfsmount; struct cred; struct swap_info_struct; struct seq_file; struct workqueue_struct; struct iov_iter; struct fscrypt_inode_info; struct fscrypt_operations; struct fsverity_info; struct fsverity_operations; struct fsnotify_mark_connector; struct fsnotify_sb_info; struct fs_context; struct fs_parameter_spec; struct fileattr; struct iomap_ops; extern void __init inode_init(void); extern void __init inode_init_early(void); extern void __init files_init(void); extern void __init files_maxfiles_init(void); extern unsigned long get_max_files(void); extern unsigned int sysctl_nr_open; typedef __kernel_rwf_t rwf_t; struct buffer_head; typedef int (get_block_t)(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create); typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, ssize_t bytes, void *private); #define MAY_EXEC 0x00000001 #define MAY_WRITE 0x00000002 #define MAY_READ 0x00000004 #define MAY_APPEND 0x00000008 #define MAY_ACCESS 0x00000010 #define MAY_OPEN 0x00000020 #define MAY_CHDIR 0x00000040 /* called from RCU mode, don't block */ #define MAY_NOT_BLOCK 0x00000080 /* * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond * to O_WRONLY and O_RDWR via the strange trick in do_dentry_open() */ /* file is open for reading */ #define FMODE_READ ((__force fmode_t)(1 << 0)) /* file is open for writing */ #define FMODE_WRITE ((__force fmode_t)(1 << 1)) /* file is seekable */ #define FMODE_LSEEK ((__force fmode_t)(1 << 2)) /* file can be accessed using pread */ #define FMODE_PREAD ((__force fmode_t)(1 << 3)) /* file can be accessed using pwrite */ #define FMODE_PWRITE ((__force fmode_t)(1 << 4)) /* File is opened for execution with sys_execve / sys_uselib */ #define FMODE_EXEC ((__force fmode_t)(1 << 5)) /* File writes are restricted (block device specific) */ #define FMODE_WRITE_RESTRICTED ((__force fmode_t)(1 << 6)) /* File supports atomic writes */ #define FMODE_CAN_ATOMIC_WRITE ((__force fmode_t)(1 << 7)) /* FMODE_* bit 8 */ /* 32bit hashes as llseek() offset (for directories) */ #define FMODE_32BITHASH ((__force fmode_t)(1 << 9)) /* 64bit hashes as llseek() offset (for directories) */ #define FMODE_64BITHASH ((__force fmode_t)(1 << 10)) /* * Don't update ctime and mtime. * * Currently a special hack for the XFS open_by_handle ioctl, but we'll * hopefully graduate it to a proper O_CMTIME flag supported by open(2) soon. */ #define FMODE_NOCMTIME ((__force fmode_t)(1 << 11)) /* Expect random access pattern */ #define FMODE_RANDOM ((__force fmode_t)(1 << 12)) /* FMODE_* bit 13 */ /* File is opened with O_PATH; almost nothing can be done with it */ #define FMODE_PATH ((__force fmode_t)(1 << 14)) /* File needs atomic accesses to f_pos */ #define FMODE_ATOMIC_POS ((__force fmode_t)(1 << 15)) /* Write access to underlying fs */ #define FMODE_WRITER ((__force fmode_t)(1 << 16)) /* Has read method(s) */ #define FMODE_CAN_READ ((__force fmode_t)(1 << 17)) /* Has write method(s) */ #define FMODE_CAN_WRITE ((__force fmode_t)(1 << 18)) #define FMODE_OPENED ((__force fmode_t)(1 << 19)) #define FMODE_CREATED ((__force fmode_t)(1 << 20)) /* File is stream-like */ #define FMODE_STREAM ((__force fmode_t)(1 << 21)) /* File supports DIRECT IO */ #define FMODE_CAN_ODIRECT ((__force fmode_t)(1 << 22)) #define FMODE_NOREUSE ((__force fmode_t)(1 << 23)) /* File is embedded in backing_file object */ #define FMODE_BACKING ((__force fmode_t)(1 << 24)) /* * Together with FMODE_NONOTIFY_PERM defines which fsnotify events shouldn't be * generated (see below) */ #define FMODE_NONOTIFY ((__force fmode_t)(1 << 25)) /* * Together with FMODE_NONOTIFY defines which fsnotify events shouldn't be * generated (see below) */ #define FMODE_NONOTIFY_PERM ((__force fmode_t)(1 << 26)) /* File is capable of returning -EAGAIN if I/O will block */ #define FMODE_NOWAIT ((__force fmode_t)(1 << 27)) /* File represents mount that needs unmounting */ #define FMODE_NEED_UNMOUNT ((__force fmode_t)(1 << 28)) /* File does not contribute to nr_files count */ #define FMODE_NOACCOUNT ((__force fmode_t)(1 << 29)) /* * The two FMODE_NONOTIFY* define which fsnotify events should not be generated * for a file. These are the possible values of (f->f_mode & * FMODE_FSNOTIFY_MASK) and their meaning: * * FMODE_NONOTIFY - suppress all (incl. non-permission) events. * FMODE_NONOTIFY_PERM - suppress permission (incl. pre-content) events. * FMODE_NONOTIFY | FMODE_NONOTIFY_PERM - suppress only pre-content events. */ #define FMODE_FSNOTIFY_MASK \ (FMODE_NONOTIFY | FMODE_NONOTIFY_PERM) #define FMODE_FSNOTIFY_NONE(mode) \ ((mode & FMODE_FSNOTIFY_MASK) == FMODE_NONOTIFY) #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS #define FMODE_FSNOTIFY_PERM(mode) \ ((mode & FMODE_FSNOTIFY_MASK) == 0 || \ (mode & FMODE_FSNOTIFY_MASK) == (FMODE_NONOTIFY | FMODE_NONOTIFY_PERM)) #define FMODE_FSNOTIFY_HSM(mode) \ ((mode & FMODE_FSNOTIFY_MASK) == 0) #else #define FMODE_FSNOTIFY_PERM(mode) 0 #define FMODE_FSNOTIFY_HSM(mode) 0 #endif /* * Attribute flags. These should be or-ed together to figure out what * has been changed! */ #define ATTR_MODE (1 << 0) #define ATTR_UID (1 << 1) #define ATTR_GID (1 << 2) #define ATTR_SIZE (1 << 3) #define ATTR_ATIME (1 << 4) #define ATTR_MTIME (1 << 5) #define ATTR_CTIME (1 << 6) #define ATTR_ATIME_SET (1 << 7) #define ATTR_MTIME_SET (1 << 8) #define ATTR_FORCE (1 << 9) /* Not a change, but a change it */ #define ATTR_KILL_SUID (1 << 11) #define ATTR_KILL_SGID (1 << 12) #define ATTR_FILE (1 << 13) #define ATTR_KILL_PRIV (1 << 14) #define ATTR_OPEN (1 << 15) /* Truncating from open(O_TRUNC) */ #define ATTR_TIMES_SET (1 << 16) #define ATTR_TOUCH (1 << 17) #define ATTR_DELEG (1 << 18) /* Delegated attrs. Don't break write delegations */ /* * Whiteout is represented by a char device. The following constants define the * mode and device number to use. */ #define WHITEOUT_MODE 0 #define WHITEOUT_DEV 0 /* * This is the Inode Attributes structure, used for notify_change(). It * uses the above definitions as flags, to know which values have changed. * Also, in this manner, a Filesystem can look at only the values it cares * about. Basically, these are the attributes that the VFS layer can * request to change from the FS layer. * * Derek Atkins <[email protected]> 94-10-20 */ struct iattr { unsigned int ia_valid; umode_t ia_mode; /* * The two anonymous unions wrap structures with the same member. * * Filesystems raising FS_ALLOW_IDMAP need to use ia_vfs{g,u}id which * are a dedicated type requiring the filesystem to use the dedicated * helpers. Other filesystem can continue to use ia_{g,u}id until they * have been ported. * * They always contain the same value. In other words FS_ALLOW_IDMAP * pass down the same value on idmapped mounts as they would on regular * mounts. */ union { kuid_t ia_uid; vfsuid_t ia_vfsuid; }; union { kgid_t ia_gid; vfsgid_t ia_vfsgid; }; loff_t ia_size; struct timespec64 ia_atime; struct timespec64 ia_mtime; struct timespec64 ia_ctime; /* * Not an attribute, but an auxiliary info for filesystems wanting to * implement an ftruncate() like method. NOTE: filesystem should * check for (ia_valid & ATTR_FILE), and not for (ia_file != NULL). */ struct file *ia_file; }; /* * Includes for diskquotas. */ #include <linux/quota.h> /* * Maximum number of layers of fs stack. Needs to be limited to * prevent kernel stack overflow */ #define FILESYSTEM_MAX_STACK_DEPTH 2 /** * enum positive_aop_returns - aop return codes with specific semantics * * @AOP_WRITEPAGE_ACTIVATE: Informs the caller that page writeback has * completed, that the page is still locked, and * should be considered active. The VM uses this hint * to return the page to the active list -- it won't * be a candidate for writeback again in the near * future. Other callers must be careful to unlock * the page if they get this return. Returned by * writepage(); * * @AOP_TRUNCATED_PAGE: The AOP method that was handed a locked page has * unlocked it and the page might have been truncated. * The caller should back up to acquiring a new page and * trying again. The aop will be taking reasonable * precautions not to livelock. If the caller held a page * reference, it should drop it before retrying. Returned * by read_folio(). * * address_space_operation functions return these large constants to indicate * special semantics to the caller. These are much larger than the bytes in a * page to allow for functions that return the number of bytes operated on in a * given page. */ enum positive_aop_returns { AOP_WRITEPAGE_ACTIVATE = 0x80000, AOP_TRUNCATED_PAGE = 0x80001, }; /* * oh the beauties of C type declarations. */ struct page; struct address_space; struct writeback_control; struct readahead_control; /* Match RWF_* bits to IOCB bits */ #define IOCB_HIPRI (__force int) RWF_HIPRI #define IOCB_DSYNC (__force int) RWF_DSYNC #define IOCB_SYNC (__force int) RWF_SYNC #define IOCB_NOWAIT (__force int) RWF_NOWAIT #define IOCB_APPEND (__force int) RWF_APPEND #define IOCB_ATOMIC (__force int) RWF_ATOMIC #define IOCB_DONTCACHE (__force int) RWF_DONTCACHE /* non-RWF related bits - start at 16 */ #define IOCB_EVENTFD (1 << 16) #define IOCB_DIRECT (1 << 17) #define IOCB_WRITE (1 << 18) /* iocb->ki_waitq is valid */ #define IOCB_WAITQ (1 << 19) #define IOCB_NOIO (1 << 20) /* can use bio alloc cache */ #define IOCB_ALLOC_CACHE (1 << 21) /* * IOCB_DIO_CALLER_COMP can be set by the iocb owner, to indicate that the * iocb completion can be passed back to the owner for execution from a safe * context rather than needing to be punted through a workqueue. If this * flag is set, the bio completion handling may set iocb->dio_complete to a * handler function and iocb->private to context information for that handler. * The issuer should call the handler with that context information from task * context to complete the processing of the iocb. Note that while this * provides a task context for the dio_complete() callback, it should only be * used on the completion side for non-IO generating completions. It's fine to * call blocking functions from this callback, but they should not wait for * unrelated IO (like cache flushing, new IO generation, etc). */ #define IOCB_DIO_CALLER_COMP (1 << 22) /* kiocb is a read or write operation submitted by fs/aio.c. */ #define IOCB_AIO_RW (1 << 23) #define IOCB_HAS_METADATA (1 << 24) /* for use in trace events */ #define TRACE_IOCB_STRINGS \ { IOCB_HIPRI, "HIPRI" }, \ { IOCB_DSYNC, "DSYNC" }, \ { IOCB_SYNC, "SYNC" }, \ { IOCB_NOWAIT, "NOWAIT" }, \ { IOCB_APPEND, "APPEND" }, \ { IOCB_ATOMIC, "ATOMIC" }, \ { IOCB_DONTCACHE, "DONTCACHE" }, \ { IOCB_EVENTFD, "EVENTFD"}, \ { IOCB_DIRECT, "DIRECT" }, \ { IOCB_WRITE, "WRITE" }, \ { IOCB_WAITQ, "WAITQ" }, \ { IOCB_NOIO, "NOIO" }, \ { IOCB_ALLOC_CACHE, "ALLOC_CACHE" }, \ { IOCB_DIO_CALLER_COMP, "CALLER_COMP" } struct kiocb { struct file *ki_filp; loff_t ki_pos; void (*ki_complete)(struct kiocb *iocb, long ret); void *private; int ki_flags; u16 ki_ioprio; /* See linux/ioprio.h */ union { /* * Only used for async buffered reads, where it denotes the * page waitqueue associated with completing the read. Valid * IFF IOCB_WAITQ is set. */ struct wait_page_queue *ki_waitq; /* * Can be used for O_DIRECT IO, where the completion handling * is punted back to the issuer of the IO. May only be set * if IOCB_DIO_CALLER_COMP is set by the issuer, and the issuer * must then check for presence of this handler when ki_complete * is invoked. The data passed in to this handler must be * assigned to ->private when dio_complete is assigned. */ ssize_t (*dio_complete)(void *data); }; }; static inline bool is_sync_kiocb(struct kiocb *kiocb) { return kiocb->ki_complete == NULL; } struct address_space_operations { int (*writepage)(struct page *page, struct writeback_control *wbc); int (*read_folio)(struct file *, struct folio *); /* Write back some dirty pages from this mapping. */ int (*writepages)(struct address_space *, struct writeback_control *); /* Mark a folio dirty. Return true if this dirtied it */ bool (*dirty_folio)(struct address_space *, struct folio *); void (*readahead)(struct readahead_control *); int (*write_begin)(struct file *, struct address_space *mapping, loff_t pos, unsigned len, struct folio **foliop, void **fsdata); int (*write_end)(struct file *, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct folio *folio, void *fsdata); /* Unfortunately this kludge is needed for FIBMAP. Don't use it */ sector_t (*bmap)(struct address_space *, sector_t); void (*invalidate_folio) (struct folio *, size_t offset, size_t len); bool (*release_folio)(struct folio *, gfp_t); void (*free_folio)(struct folio *folio); ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter); /* * migrate the contents of a folio to the specified target. If * migrate_mode is MIGRATE_ASYNC, it must not block. */ int (*migrate_folio)(struct address_space *, struct folio *dst, struct folio *src, enum migrate_mode); int (*launder_folio)(struct folio *); bool (*is_partially_uptodate) (struct folio *, size_t from, size_t count); void (*is_dirty_writeback) (struct folio *, bool *dirty, bool *wb); int (*error_remove_folio)(struct address_space *, struct folio *); /* swapfile support */ int (*swap_activate)(struct swap_info_struct *sis, struct file *file, sector_t *span); void (*swap_deactivate)(struct file *file); int (*swap_rw)(struct kiocb *iocb, struct iov_iter *iter); }; extern const struct address_space_operations empty_aops; /** * struct address_space - Contents of a cacheable, mappable object. * @host: Owner, either the inode or the block_device. * @i_pages: Cached pages. * @invalidate_lock: Guards coherency between page cache contents and * file offset->disk block mappings in the filesystem during invalidates. * It is also used to block modification of page cache contents through * memory mappings. * @gfp_mask: Memory allocation flags to use for allocating pages. * @i_mmap_writable: Number of VM_SHARED, VM_MAYWRITE mappings. * @nr_thps: Number of THPs in the pagecache (non-shmem only). * @i_mmap: Tree of private and shared mappings. * @i_mmap_rwsem: Protects @i_mmap and @i_mmap_writable. * @nrpages: Number of page entries, protected by the i_pages lock. * @writeback_index: Writeback starts here. * @a_ops: Methods. * @flags: Error bits and flags (AS_*). * @wb_err: The most recent error which has occurred. * @i_private_lock: For use by the owner of the address_space. * @i_private_list: For use by the owner of the address_space. * @i_private_data: For use by the owner of the address_space. */ struct address_space { struct inode *host; struct xarray i_pages; struct rw_semaphore invalidate_lock; gfp_t gfp_mask; atomic_t i_mmap_writable; #ifdef CONFIG_READ_ONLY_THP_FOR_FS /* number of thp, only for non-shmem files */ atomic_t nr_thps; #endif struct rb_root_cached i_mmap; unsigned long nrpages; pgoff_t writeback_index; const struct address_space_operations *a_ops; unsigned long flags; errseq_t wb_err; spinlock_t i_private_lock; struct list_head i_private_list; struct rw_semaphore i_mmap_rwsem; void * i_private_data; } __attribute__((aligned(sizeof(long)))) __randomize_layout; /* * On most architectures that alignment is already the case; but * must be enforced here for CRIS, to let the least significant bit * of struct page's "mapping" pointer be used for PAGE_MAPPING_ANON. */ /* XArray tags, for tagging dirty and writeback pages in the pagecache. */ #define PAGECACHE_TAG_DIRTY XA_MARK_0 #define PAGECACHE_TAG_WRITEBACK XA_MARK_1 #define PAGECACHE_TAG_TOWRITE XA_MARK_2 /* * Returns true if any of the pages in the mapping are marked with the tag. */ static inline bool mapping_tagged(struct address_space *mapping, xa_mark_t tag) { return xa_marked(&mapping->i_pages, tag); } static inline void i_mmap_lock_write(struct address_space *mapping) { down_write(&mapping->i_mmap_rwsem); } static inline int i_mmap_trylock_write(struct address_space *mapping) { return down_write_trylock(&mapping->i_mmap_rwsem); } static inline void i_mmap_unlock_write(struct address_space *mapping) { up_write(&mapping->i_mmap_rwsem); } static inline int i_mmap_trylock_read(struct address_space *mapping) { return down_read_trylock(&mapping->i_mmap_rwsem); } static inline void i_mmap_lock_read(struct address_space *mapping) { down_read(&mapping->i_mmap_rwsem); } static inline void i_mmap_unlock_read(struct address_space *mapping) { up_read(&mapping->i_mmap_rwsem); } static inline void i_mmap_assert_locked(struct address_space *mapping) { lockdep_assert_held(&mapping->i_mmap_rwsem); } static inline void i_mmap_assert_write_locked(struct address_space *mapping) { lockdep_assert_held_write(&mapping->i_mmap_rwsem); } /* * Might pages of this file be mapped into userspace? */ static inline int mapping_mapped(struct address_space *mapping) { return !RB_EMPTY_ROOT(&mapping->i_mmap.rb_root); } /* * Might pages of this file have been modified in userspace? * Note that i_mmap_writable counts all VM_SHARED, VM_MAYWRITE vmas: do_mmap * marks vma as VM_SHARED if it is shared, and the file was opened for * writing i.e. vma may be mprotected writable even if now readonly. * * If i_mmap_writable is negative, no new writable mappings are allowed. You * can only deny writable mappings, if none exists right now. */ static inline int mapping_writably_mapped(struct address_space *mapping) { return atomic_read(&mapping->i_mmap_writable) > 0; } static inline int mapping_map_writable(struct address_space *mapping) { return atomic_inc_unless_negative(&mapping->i_mmap_writable) ? 0 : -EPERM; } static inline void mapping_unmap_writable(struct address_space *mapping) { atomic_dec(&mapping->i_mmap_writable); } static inline int mapping_deny_writable(struct address_space *mapping) { return atomic_dec_unless_positive(&mapping->i_mmap_writable) ? 0 : -EBUSY; } static inline void mapping_allow_writable(struct address_space *mapping) { atomic_inc(&mapping->i_mmap_writable); } /* * Use sequence counter to get consistent i_size on 32-bit processors. */ #if BITS_PER_LONG==32 && defined(CONFIG_SMP) #include <linux/seqlock.h> #define __NEED_I_SIZE_ORDERED #define i_size_ordered_init(inode) seqcount_init(&inode->i_size_seqcount) #else #define i_size_ordered_init(inode) do { } while (0) #endif struct posix_acl; #define ACL_NOT_CACHED ((void *)(-1)) /* * ACL_DONT_CACHE is for stacked filesystems, that rely on underlying fs to * cache the ACL. This also means that ->get_inode_acl() can be called in RCU * mode with the LOOKUP_RCU flag. */ #define ACL_DONT_CACHE ((void *)(-3)) static inline struct posix_acl * uncached_acl_sentinel(struct task_struct *task) { return (void *)task + 1; } static inline bool is_uncached_acl(struct posix_acl *acl) { return (long)acl & 1; } #define IOP_FASTPERM 0x0001 #define IOP_LOOKUP 0x0002 #define IOP_NOFOLLOW 0x0004 #define IOP_XATTR 0x0008 #define IOP_DEFAULT_READLINK 0x0010 #define IOP_MGTIME 0x0020 #define IOP_CACHED_LINK 0x0040 /* * Keep mostly read-only and often accessed (especially for * the RCU path lookup and 'stat' data) fields at the beginning * of the 'struct inode' */ struct inode { umode_t i_mode; unsigned short i_opflags; kuid_t i_uid; kgid_t i_gid; unsigned int i_flags; #ifdef CONFIG_FS_POSIX_ACL struct posix_acl *i_acl; struct posix_acl *i_default_acl; #endif const struct inode_operations *i_op; struct super_block *i_sb; struct address_space *i_mapping; #ifdef CONFIG_SECURITY void *i_security; #endif /* Stat data, not accessed from path walking */ unsigned long i_ino; /* * Filesystems may only read i_nlink directly. They shall use the * following functions for modification: * * (set|clear|inc|drop)_nlink * inode_(inc|dec)_link_count */ union { const unsigned int i_nlink; unsigned int __i_nlink; }; dev_t i_rdev; loff_t i_size; time64_t i_atime_sec; time64_t i_mtime_sec; time64_t i_ctime_sec; u32 i_atime_nsec; u32 i_mtime_nsec; u32 i_ctime_nsec; u32 i_generation; spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ unsigned short i_bytes; u8 i_blkbits; enum rw_hint i_write_hint; blkcnt_t i_blocks; #ifdef __NEED_I_SIZE_ORDERED seqcount_t i_size_seqcount; #endif /* Misc */ u32 i_state; /* 32-bit hole */ struct rw_semaphore i_rwsem; unsigned long dirtied_when; /* jiffies of first dirtying */ unsigned long dirtied_time_when; struct hlist_node i_hash; struct list_head i_io_list; /* backing dev IO list */ #ifdef CONFIG_CGROUP_WRITEBACK struct bdi_writeback *i_wb; /* the associated cgroup wb */ /* foreign inode detection, see wbc_detach_inode() */ int i_wb_frn_winner; u16 i_wb_frn_avg_time; u16 i_wb_frn_history; #endif struct list_head i_lru; /* inode LRU list */ struct list_head i_sb_list; struct list_head i_wb_list; /* backing dev writeback list */ union { struct hlist_head i_dentry; struct rcu_head i_rcu; }; atomic64_t i_version; atomic64_t i_sequence; /* see futex */ atomic_t i_count; atomic_t i_dio_count; atomic_t i_writecount; #if defined(CONFIG_IMA) || defined(CONFIG_FILE_LOCKING) atomic_t i_readcount; /* struct files open RO */ #endif union { const struct file_operations *i_fop; /* former ->i_op->default_file_ops */ void (*free_inode)(struct inode *); }; struct file_lock_context *i_flctx; struct address_space i_data; union { struct list_head i_devices; int i_linklen; }; union { struct pipe_inode_info *i_pipe; struct cdev *i_cdev; char *i_link; unsigned i_dir_seq; }; #ifdef CONFIG_FSNOTIFY __u32 i_fsnotify_mask; /* all events this inode cares about */ /* 32-bit hole reserved for expanding i_fsnotify_mask */ struct fsnotify_mark_connector __rcu *i_fsnotify_marks; #endif #ifdef CONFIG_FS_ENCRYPTION struct fscrypt_inode_info *i_crypt_info; #endif #ifdef CONFIG_FS_VERITY struct fsverity_info *i_verity_info; #endif void *i_private; /* fs or device private pointer */ } __randomize_layout; static inline void inode_set_cached_link(struct inode *inode, char *link, int linklen) { int testlen; /* * TODO: patch it into a debug-only check if relevant macros show up. * In the meantime, since we are suffering strlen even on production kernels * to find the right length, do a fixup if the wrong value got passed. */ testlen = strlen(link); if (testlen != linklen) { WARN_ONCE(1, "bad length passed for symlink [%s] (got %d, expected %d)", link, linklen, testlen); linklen = testlen; } inode->i_link = link; inode->i_linklen = linklen; inode->i_opflags |= IOP_CACHED_LINK; } /* * Get bit address from inode->i_state to use with wait_var_event() * infrastructre. */ #define inode_state_wait_address(inode, bit) ((char *)&(inode)->i_state + (bit)) struct wait_queue_head *inode_bit_waitqueue(struct wait_bit_queue_entry *wqe, struct inode *inode, u32 bit); static inline void inode_wake_up_bit(struct inode *inode, u32 bit) { /* Caller is responsible for correct memory barriers. */ wake_up_var(inode_state_wait_address(inode, bit)); } struct timespec64 timestamp_truncate(struct timespec64 t, struct inode *inode); static inline unsigned int i_blocksize(const struct inode *node) { return (1 << node->i_blkbits); } static inline int inode_unhashed(struct inode *inode) { return hlist_unhashed(&inode->i_hash); } /* * __mark_inode_dirty expects inodes to be hashed. Since we don't * want special inodes in the fileset inode space, we make them * appear hashed, but do not put on any lists. hlist_del() * will work fine and require no locking. */ static inline void inode_fake_hash(struct inode *inode) { hlist_add_fake(&inode->i_hash); } /* * inode->i_mutex nesting subclasses for the lock validator: * * 0: the object of the current VFS operation * 1: parent * 2: child/target * 3: xattr * 4: second non-directory * 5: second parent (when locking independent directories in rename) * * I_MUTEX_NONDIR2 is for certain operations (such as rename) which lock two * non-directories at once. * * The locking order between these classes is * parent[2] -> child -> grandchild -> normal -> xattr -> second non-directory */ enum inode_i_mutex_lock_class { I_MUTEX_NORMAL, I_MUTEX_PARENT, I_MUTEX_CHILD, I_MUTEX_XATTR, I_MUTEX_NONDIR2, I_MUTEX_PARENT2, }; static inline void inode_lock(struct inode *inode) { down_write(&inode->i_rwsem); } static inline void inode_unlock(struct inode *inode) { up_write(&inode->i_rwsem); } static inline void inode_lock_shared(struct inode *inode) { down_read(&inode->i_rwsem); } static inline void inode_unlock_shared(struct inode *inode) { up_read(&inode->i_rwsem); } static inline int inode_trylock(struct inode *inode) { return down_write_trylock(&inode->i_rwsem); } static inline int inode_trylock_shared(struct inode *inode) { return down_read_trylock(&inode->i_rwsem); } static inline int inode_is_locked(struct inode *inode) { return rwsem_is_locked(&inode->i_rwsem); } static inline void inode_lock_nested(struct inode *inode, unsigned subclass) { down_write_nested(&inode->i_rwsem, subclass); } static inline void inode_lock_shared_nested(struct inode *inode, unsigned subclass) { down_read_nested(&inode->i_rwsem, subclass); } static inline void filemap_invalidate_lock(struct address_space *mapping) { down_write(&mapping->invalidate_lock); } static inline void filemap_invalidate_unlock(struct address_space *mapping) { up_write(&mapping->invalidate_lock); } static inline void filemap_invalidate_lock_shared(struct address_space *mapping) { down_read(&mapping->invalidate_lock); } static inline int filemap_invalidate_trylock_shared( struct address_space *mapping) { return down_read_trylock(&mapping->invalidate_lock); } static inline void filemap_invalidate_unlock_shared( struct address_space *mapping) { up_read(&mapping->invalidate_lock); } void lock_two_nondirectories(struct inode *, struct inode*); void unlock_two_nondirectories(struct inode *, struct inode*); void filemap_invalidate_lock_two(struct address_space *mapping1, struct address_space *mapping2); void filemap_invalidate_unlock_two(struct address_space *mapping1, struct address_space *mapping2); /* * NOTE: in a 32bit arch with a preemptable kernel and * an UP compile the i_size_read/write must be atomic * with respect to the local cpu (unlike with preempt disabled), * but they don't need to be atomic with respect to other cpus like in * true SMP (so they need either to either locally disable irq around * the read or for example on x86 they can be still implemented as a * cmpxchg8b without the need of the lock prefix). For SMP compiles * and 64bit archs it makes no difference if preempt is enabled or not. */ static inline loff_t i_size_read(const struct inode *inode) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) loff_t i_size; unsigned int seq; do { seq = read_seqcount_begin(&inode->i_size_seqcount); i_size = inode->i_size; } while (read_seqcount_retry(&inode->i_size_seqcount, seq)); return i_size; #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPTION) loff_t i_size; preempt_disable(); i_size = inode->i_size; preempt_enable(); return i_size; #else /* Pairs with smp_store_release() in i_size_write() */ return smp_load_acquire(&inode->i_size); #endif } /* * NOTE: unlike i_size_read(), i_size_write() does need locking around it * (normally i_mutex), otherwise on 32bit/SMP an update of i_size_seqcount * can be lost, resulting in subsequent i_size_read() calls spinning forever. */ static inline void i_size_write(struct inode *inode, loff_t i_size) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP) preempt_disable(); write_seqcount_begin(&inode->i_size_seqcount); inode->i_size = i_size; write_seqcount_end(&inode->i_size_seqcount); preempt_enable(); #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPTION) preempt_disable(); inode->i_size = i_size; preempt_enable(); #else /* * Pairs with smp_load_acquire() in i_size_read() to ensure * changes related to inode size (such as page contents) are * visible before we see the changed inode size. */ smp_store_release(&inode->i_size, i_size); #endif } static inline unsigned iminor(const struct inode *inode) { return MINOR(inode->i_rdev); } static inline unsigned imajor(const struct inode *inode) { return MAJOR(inode->i_rdev); } struct fown_struct { struct file *file; /* backpointer for security modules */ rwlock_t lock; /* protects pid, uid, euid fields */ struct pid *pid; /* pid or -pgrp where SIGIO should be sent */ enum pid_type pid_type; /* Kind of process group SIGIO should be sent to */ kuid_t uid, euid; /* uid/euid of process setting the owner */ int signum; /* posix.1b rt signal to be delivered on IO */ }; /** * struct file_ra_state - Track a file's readahead state. * @start: Where the most recent readahead started. * @size: Number of pages read in the most recent readahead. * @async_size: Numer of pages that were/are not needed immediately * and so were/are genuinely "ahead". Start next readahead when * the first of these pages is accessed. * @ra_pages: Maximum size of a readahead request, copied from the bdi. * @mmap_miss: How many mmap accesses missed in the page cache. * @prev_pos: The last byte in the most recent read request. * * When this structure is passed to ->readahead(), the "most recent" * readahead means the current readahead. */ struct file_ra_state { pgoff_t start; unsigned int size; unsigned int async_size; unsigned int ra_pages; unsigned int mmap_miss; loff_t prev_pos; }; /* * Check if @index falls in the readahead windows. */ static inline int ra_has_index(struct file_ra_state *ra, pgoff_t index) { return (index >= ra->start && index < ra->start + ra->size); } /** * struct file - Represents a file * @f_ref: reference count * @f_lock: Protects f_ep, f_flags. Must not be taken from IRQ context. * @f_mode: FMODE_* flags often used in hotpaths * @f_op: file operations * @f_mapping: Contents of a cacheable, mappable object. * @private_data: filesystem or driver specific data * @f_inode: cached inode * @f_flags: file flags * @f_iocb_flags: iocb flags * @f_cred: stashed credentials of creator/opener * @f_path: path of the file * @f_pos_lock: lock protecting file position * @f_pipe: specific to pipes * @f_pos: file position * @f_security: LSM security context of this file * @f_owner: file owner * @f_wb_err: writeback error * @f_sb_err: per sb writeback errors * @f_ep: link of all epoll hooks for this file * @f_task_work: task work entry point * @f_llist: work queue entrypoint * @f_ra: file's readahead state * @f_freeptr: Pointer used by SLAB_TYPESAFE_BY_RCU file cache (don't touch.) */ struct file { file_ref_t f_ref; spinlock_t f_lock; fmode_t f_mode; const struct file_operations *f_op; struct address_space *f_mapping; void *private_data; struct inode *f_inode; unsigned int f_flags; unsigned int f_iocb_flags; const struct cred *f_cred; /* --- cacheline 1 boundary (64 bytes) --- */ struct path f_path; union { /* regular files (with FMODE_ATOMIC_POS) and directories */ struct mutex f_pos_lock; /* pipes */ u64 f_pipe; }; loff_t f_pos; #ifdef CONFIG_SECURITY void *f_security; #endif /* --- cacheline 2 boundary (128 bytes) --- */ struct fown_struct *f_owner; errseq_t f_wb_err; errseq_t f_sb_err; #ifdef CONFIG_EPOLL struct hlist_head *f_ep; #endif union { struct callback_head f_task_work; struct llist_node f_llist; struct file_ra_state f_ra; freeptr_t f_freeptr; }; /* --- cacheline 3 boundary (192 bytes) --- */ } __randomize_layout __attribute__((aligned(4))); /* lest something weird decides that 2 is OK */ struct file_handle { __u32 handle_bytes; int handle_type; /* file identifier */ unsigned char f_handle[] __counted_by(handle_bytes); }; static inline struct file *get_file(struct file *f) { file_ref_inc(&f->f_ref); return f; } struct file *get_file_rcu(struct file __rcu **f); struct file *get_file_active(struct file **f); #define file_count(f) file_ref_read(&(f)->f_ref) #define MAX_NON_LFS ((1UL<<31) - 1) /* Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM. */ #if BITS_PER_LONG==32 #define MAX_LFS_FILESIZE ((loff_t)ULONG_MAX << PAGE_SHIFT) #elif BITS_PER_LONG==64 #define MAX_LFS_FILESIZE ((loff_t)LLONG_MAX) #endif /* legacy typedef, should eventually be removed */ typedef void *fl_owner_t; struct file_lock; struct file_lease; /* The following constant reflects the upper bound of the file/locking space */ #ifndef OFFSET_MAX #define OFFSET_MAX type_max(loff_t) #define OFFT_OFFSET_MAX type_max(off_t) #endif int file_f_owner_allocate(struct file *file); static inline struct fown_struct *file_f_owner(const struct file *file) { return READ_ONCE(file->f_owner); } extern void send_sigio(struct fown_struct *fown, int fd, int band); static inline struct inode *file_inode(const struct file *f) { return f->f_inode; } /* * file_dentry() is a relic from the days that overlayfs was using files with a * "fake" path, meaning, f_path on overlayfs and f_inode on underlying fs. * In those days, file_dentry() was needed to get the underlying fs dentry that * matches f_inode. * Files with "fake" path should not exist nowadays, so use an assertion to make * sure that file_dentry() was not papering over filesystem bugs. */ static inline struct dentry *file_dentry(const struct file *file) { struct dentry *dentry = file->f_path.dentry; WARN_ON_ONCE(d_inode(dentry) != file_inode(file)); return dentry; } struct fasync_struct { rwlock_t fa_lock; int magic; int fa_fd; struct fasync_struct *fa_next; /* singly linked list */ struct file *fa_file; struct rcu_head fa_rcu; }; #define FASYNC_MAGIC 0x4601 /* SMP safe fasync helpers: */ extern int fasync_helper(int, struct file *, int, struct fasync_struct **); extern struct fasync_struct *fasync_insert_entry(int, struct file *, struct fasync_struct **, struct fasync_struct *); extern int fasync_remove_entry(struct file *, struct fasync_struct **); extern struct fasync_struct *fasync_alloc(void); extern void fasync_free(struct fasync_struct *); /* can be called from interrupts */ extern void kill_fasync(struct fasync_struct **, int, int); extern void __f_setown(struct file *filp, struct pid *, enum pid_type, int force); extern int f_setown(struct file *filp, int who, int force); extern void f_delown(struct file *filp); extern pid_t f_getown(struct file *filp); extern int send_sigurg(struct file *file); /* * sb->s_flags. Note that these mirror the equivalent MS_* flags where * represented in both. */ #define SB_RDONLY BIT(0) /* Mount read-only */ #define SB_NOSUID BIT(1) /* Ignore suid and sgid bits */ #define SB_NODEV BIT(2) /* Disallow access to device special files */ #define SB_NOEXEC BIT(3) /* Disallow program execution */ #define SB_SYNCHRONOUS BIT(4) /* Writes are synced at once */ #define SB_MANDLOCK BIT(6) /* Allow mandatory locks on an FS */ #define SB_DIRSYNC BIT(7) /* Directory modifications are synchronous */ #define SB_NOATIME BIT(10) /* Do not update access times. */ #define SB_NODIRATIME BIT(11) /* Do not update directory access times */ #define SB_SILENT BIT(15) #define SB_POSIXACL BIT(16) /* Supports POSIX ACLs */ #define SB_INLINECRYPT BIT(17) /* Use blk-crypto for encrypted files */ #define SB_KERNMOUNT BIT(22) /* this is a kern_mount call */ #define SB_I_VERSION BIT(23) /* Update inode I_version field */ #define SB_LAZYTIME BIT(25) /* Update the on-disk [acm]times lazily */ /* These sb flags are internal to the kernel */ #define SB_DEAD BIT(21) #define SB_DYING BIT(24) #define SB_SUBMOUNT BIT(26) #define SB_FORCE BIT(27) #define SB_NOSEC BIT(28) #define SB_BORN BIT(29) #define SB_ACTIVE BIT(30) #define SB_NOUSER BIT(31) /* These flags relate to encoding and casefolding */ #define SB_ENC_STRICT_MODE_FL (1 << 0) #define sb_has_strict_encoding(sb) \ (sb->s_encoding_flags & SB_ENC_STRICT_MODE_FL) /* * Umount options */ #define MNT_FORCE 0x00000001 /* Attempt to forcibily umount */ #define MNT_DETACH 0x00000002 /* Just detach from the tree */ #define MNT_EXPIRE 0x00000004 /* Mark for expiry */ #define UMOUNT_NOFOLLOW 0x00000008 /* Don't follow symlink on umount */ #define UMOUNT_UNUSED 0x80000000 /* Flag guaranteed to be unused */ /* sb->s_iflags */ #define SB_I_CGROUPWB 0x00000001 /* cgroup-aware writeback enabled */ #define SB_I_NOEXEC 0x00000002 /* Ignore executables on this fs */ #define SB_I_NODEV 0x00000004 /* Ignore devices on this fs */ #define SB_I_STABLE_WRITES 0x00000008 /* don't modify blks until WB is done */ /* sb->s_iflags to limit user namespace mounts */ #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ #define SB_I_IMA_UNVERIFIABLE_SIGNATURE 0x00000020 #define SB_I_UNTRUSTED_MOUNTER 0x00000040 #define SB_I_EVM_HMAC_UNSUPPORTED 0x00000080 #define SB_I_SKIP_SYNC 0x00000100 /* Skip superblock at global sync */ #define SB_I_PERSB_BDI 0x00000200 /* has a per-sb bdi */ #define SB_I_TS_EXPIRY_WARNED 0x00000400 /* warned about timestamp range expiry */ #define SB_I_RETIRED 0x00000800 /* superblock shouldn't be reused */ #define SB_I_NOUMASK 0x00001000 /* VFS does not apply umask */ #define SB_I_NOIDMAP 0x00002000 /* No idmapped mounts on this superblock */ #define SB_I_ALLOW_HSM 0x00004000 /* Allow HSM events on this superblock */ /* Possible states of 'frozen' field */ enum { SB_UNFROZEN = 0, /* FS is unfrozen */ SB_FREEZE_WRITE = 1, /* Writes, dir ops, ioctls frozen */ SB_FREEZE_PAGEFAULT = 2, /* Page faults stopped as well */ SB_FREEZE_FS = 3, /* For internal FS use (e.g. to stop * internal threads if needed) */ SB_FREEZE_COMPLETE = 4, /* ->freeze_fs finished successfully */ }; #define SB_FREEZE_LEVELS (SB_FREEZE_COMPLETE - 1) struct sb_writers { unsigned short frozen; /* Is sb frozen? */ int freeze_kcount; /* How many kernel freeze requests? */ int freeze_ucount; /* How many userspace freeze requests? */ struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS]; }; struct super_block { struct list_head s_list; /* Keep this first */ dev_t s_dev; /* search index; _not_ kdev_t */ unsigned char s_blocksize_bits; unsigned long s_blocksize; loff_t s_maxbytes; /* Max file size */ struct file_system_type *s_type; const struct super_operations *s_op; const struct dquot_operations *dq_op; const struct quotactl_ops *s_qcop; const struct export_operations *s_export_op; unsigned long s_flags; unsigned long s_iflags; /* internal SB_I_* flags */ unsigned long s_magic; struct dentry *s_root; struct rw_semaphore s_umount; int s_count; atomic_t s_active; #ifdef CONFIG_SECURITY void *s_security; #endif const struct xattr_handler * const *s_xattr; #ifdef CONFIG_FS_ENCRYPTION const struct fscrypt_operations *s_cop; struct fscrypt_keyring *s_master_keys; /* master crypto keys in use */ #endif #ifdef CONFIG_FS_VERITY const struct fsverity_operations *s_vop; #endif #if IS_ENABLED(CONFIG_UNICODE) struct unicode_map *s_encoding; __u16 s_encoding_flags; #endif struct hlist_bl_head s_roots; /* alternate root dentries for NFS */ struct list_head s_mounts; /* list of mounts; _not_ for fs use */ struct block_device *s_bdev; /* can go away once we use an accessor for @s_bdev_file */ struct file *s_bdev_file; struct backing_dev_info *s_bdi; struct mtd_info *s_mtd; struct hlist_node s_instances; unsigned int s_quota_types; /* Bitmask of supported quota types */ struct quota_info s_dquot; /* Diskquota specific options */ struct sb_writers s_writers; /* * Keep s_fs_info, s_time_gran, s_fsnotify_mask, and * s_fsnotify_info together for cache efficiency. They are frequently * accessed and rarely modified. */ void *s_fs_info; /* Filesystem private info */ /* Granularity of c/m/atime in ns (cannot be worse than a second) */ u32 s_time_gran; /* Time limits for c/m/atime in seconds */ time64_t s_time_min; time64_t s_time_max; #ifdef CONFIG_FSNOTIFY u32 s_fsnotify_mask; struct fsnotify_sb_info *s_fsnotify_info; #endif /* * q: why are s_id and s_sysfs_name not the same? both are human * readable strings that identify the filesystem * a: s_id is allowed to change at runtime; it's used in log messages, * and we want to when a device starts out as single device (s_id is dev * name) but then a device is hot added and we have to switch to * identifying it by UUID * but s_sysfs_name is a handle for programmatic access, and can't * change at runtime */ char s_id[32]; /* Informational name */ uuid_t s_uuid; /* UUID */ u8 s_uuid_len; /* Default 16, possibly smaller for weird filesystems */ /* if set, fs shows up under sysfs at /sys/fs/$FSTYP/s_sysfs_name */ char s_sysfs_name[UUID_STRING_LEN + 1]; unsigned int s_max_links; /* * The next field is for VFS *only*. No filesystems have any business * even looking at it. You had been warned. */ struct mutex s_vfs_rename_mutex; /* Kludge */ /* * Filesystem subtype. If non-empty the filesystem type field * in /proc/mounts will be "type.subtype" */ const char *s_subtype; const struct dentry_operations *s_d_op; /* default d_op for dentries */ struct shrinker *s_shrink; /* per-sb shrinker handle */ /* Number of inodes with nlink == 0 but still referenced */ atomic_long_t s_remove_count; /* Read-only state of the superblock is being changed */ int s_readonly_remount; /* per-sb errseq_t for reporting writeback errors via syncfs */ errseq_t s_wb_err; /* AIO completions deferred from interrupt context */ struct workqueue_struct *s_dio_done_wq; struct hlist_head s_pins; /* * Owning user namespace and default context in which to * interpret filesystem uids, gids, quotas, device nodes, * xattrs and security labels. */ struct user_namespace *s_user_ns; /* * The list_lru structure is essentially just a pointer to a table * of per-node lru lists, each of which has its own spinlock. * There is no need to put them into separate cachelines. */ struct list_lru s_dentry_lru; struct list_lru s_inode_lru; struct rcu_head rcu; struct work_struct destroy_work; struct mutex s_sync_lock; /* sync serialisation lock */ /* * Indicates how deep in a filesystem stack this SB is */ int s_stack_depth; /* s_inode_list_lock protects s_inodes */ spinlock_t s_inode_list_lock ____cacheline_aligned_in_smp; struct list_head s_inodes; /* all inodes */ spinlock_t s_inode_wblist_lock; struct list_head s_inodes_wb; /* writeback inodes */ } __randomize_layout; static inline struct user_namespace *i_user_ns(const struct inode *inode) { return inode->i_sb->s_user_ns; } /* Helper functions so that in most cases filesystems will * not need to deal directly with kuid_t and kgid_t and can * instead deal with the raw numeric values that are stored * in the filesystem. */ static inline uid_t i_uid_read(const struct inode *inode) { return from_kuid(i_user_ns(inode), inode->i_uid); } static inline gid_t i_gid_read(const struct inode *inode) { return from_kgid(i_user_ns(inode), inode->i_gid); } static inline void i_uid_write(struct inode *inode, uid_t uid) { inode->i_uid = make_kuid(i_user_ns(inode), uid); } static inline void i_gid_write(struct inode *inode, gid_t gid) { inode->i_gid = make_kgid(i_user_ns(inode), gid); } /** * i_uid_into_vfsuid - map an inode's i_uid down according to an idmapping * @idmap: idmap of the mount the inode was found from * @inode: inode to map * * Return: whe inode's i_uid mapped down according to @idmap. * If the inode's i_uid has no mapping INVALID_VFSUID is returned. */ static inline vfsuid_t i_uid_into_vfsuid(struct mnt_idmap *idmap, const struct inode *inode) { return make_vfsuid(idmap, i_user_ns(inode), inode->i_uid); } /** * i_uid_needs_update - check whether inode's i_uid needs to be updated * @idmap: idmap of the mount the inode was found from * @attr: the new attributes of @inode * @inode: the inode to update * * Check whether the $inode's i_uid field needs to be updated taking idmapped * mounts into account if the filesystem supports it. * * Return: true if @inode's i_uid field needs to be updated, false if not. */ static inline bool i_uid_needs_update(struct mnt_idmap *idmap, const struct iattr *attr, const struct inode *inode) { return ((attr->ia_valid & ATTR_UID) && !vfsuid_eq(attr->ia_vfsuid, i_uid_into_vfsuid(idmap, inode))); } /** * i_uid_update - update @inode's i_uid field * @idmap: idmap of the mount the inode was found from * @attr: the new attributes of @inode * @inode: the inode to update * * Safely update @inode's i_uid field translating the vfsuid of any idmapped * mount into the filesystem kuid. */ static inline void i_uid_update(struct mnt_idmap *idmap, const struct iattr *attr, struct inode *inode) { if (attr->ia_valid & ATTR_UID) inode->i_uid = from_vfsuid(idmap, i_user_ns(inode), attr->ia_vfsuid); } /** * i_gid_into_vfsgid - map an inode's i_gid down according to an idmapping * @idmap: idmap of the mount the inode was found from * @inode: inode to map * * Return: the inode's i_gid mapped down according to @idmap. * If the inode's i_gid has no mapping INVALID_VFSGID is returned. */ static inline vfsgid_t i_gid_into_vfsgid(struct mnt_idmap *idmap, const struct inode *inode) { return make_vfsgid(idmap, i_user_ns(inode), inode->i_gid); } /** * i_gid_needs_update - check whether inode's i_gid needs to be updated * @idmap: idmap of the mount the inode was found from * @attr: the new attributes of @inode * @inode: the inode to update * * Check whether the $inode's i_gid field needs to be updated taking idmapped * mounts into account if the filesystem supports it. * * Return: true if @inode's i_gid field needs to be updated, false if not. */ static inline bool i_gid_needs_update(struct mnt_idmap *idmap, const struct iattr *attr, const struct inode *inode) { return ((attr->ia_valid & ATTR_GID) && !vfsgid_eq(attr->ia_vfsgid, i_gid_into_vfsgid(idmap, inode))); } /** * i_gid_update - update @inode's i_gid field * @idmap: idmap of the mount the inode was found from * @attr: the new attributes of @inode * @inode: the inode to update * * Safely update @inode's i_gid field translating the vfsgid of any idmapped * mount into the filesystem kgid. */ static inline void i_gid_update(struct mnt_idmap *idmap, const struct iattr *attr, struct inode *inode) { if (attr->ia_valid & ATTR_GID) inode->i_gid = from_vfsgid(idmap, i_user_ns(inode), attr->ia_vfsgid); } /** * inode_fsuid_set - initialize inode's i_uid field with callers fsuid * @inode: inode to initialize * @idmap: idmap of the mount the inode was found from * * Initialize the i_uid field of @inode. If the inode was found/created via * an idmapped mount map the caller's fsuid according to @idmap. */ static inline void inode_fsuid_set(struct inode *inode, struct mnt_idmap *idmap) { inode->i_uid = mapped_fsuid(idmap, i_user_ns(inode)); } /** * inode_fsgid_set - initialize inode's i_gid field with callers fsgid * @inode: inode to initialize * @idmap: idmap of the mount the inode was found from * * Initialize the i_gid field of @inode. If the inode was found/created via * an idmapped mount map the caller's fsgid according to @idmap. */ static inline void inode_fsgid_set(struct inode *inode, struct mnt_idmap *idmap) { inode->i_gid = mapped_fsgid(idmap, i_user_ns(inode)); } /** * fsuidgid_has_mapping() - check whether caller's fsuid/fsgid is mapped * @sb: the superblock we want a mapping in * @idmap: idmap of the relevant mount * * Check whether the caller's fsuid and fsgid have a valid mapping in the * s_user_ns of the superblock @sb. If the caller is on an idmapped mount map * the caller's fsuid and fsgid according to the @idmap first. * * Return: true if fsuid and fsgid is mapped, false if not. */ static inline bool fsuidgid_has_mapping(struct super_block *sb, struct mnt_idmap *idmap) { struct user_namespace *fs_userns = sb->s_user_ns; kuid_t kuid; kgid_t kgid; kuid = mapped_fsuid(idmap, fs_userns); if (!uid_valid(kuid)) return false; kgid = mapped_fsgid(idmap, fs_userns); if (!gid_valid(kgid)) return false; return kuid_has_mapping(fs_userns, kuid) && kgid_has_mapping(fs_userns, kgid); } struct timespec64 current_time(struct inode *inode); struct timespec64 inode_set_ctime_current(struct inode *inode); struct timespec64 inode_set_ctime_deleg(struct inode *inode, struct timespec64 update); static inline time64_t inode_get_atime_sec(const struct inode *inode) { return inode->i_atime_sec; } static inline long inode_get_atime_nsec(const struct inode *inode) { return inode->i_atime_nsec; } static inline struct timespec64 inode_get_atime(const struct inode *inode) { struct timespec64 ts = { .tv_sec = inode_get_atime_sec(inode), .tv_nsec = inode_get_atime_nsec(inode) }; return ts; } static inline struct timespec64 inode_set_atime_to_ts(struct inode *inode, struct timespec64 ts) { inode->i_atime_sec = ts.tv_sec; inode->i_atime_nsec = ts.tv_nsec; return ts; } static inline struct timespec64 inode_set_atime(struct inode *inode, time64_t sec, long nsec) { struct timespec64 ts = { .tv_sec = sec, .tv_nsec = nsec }; return inode_set_atime_to_ts(inode, ts); } static inline time64_t inode_get_mtime_sec(const struct inode *inode) { return inode->i_mtime_sec; } static inline long inode_get_mtime_nsec(const struct inode *inode) { return inode->i_mtime_nsec; } static inline struct timespec64 inode_get_mtime(const struct inode *inode) { struct timespec64 ts = { .tv_sec = inode_get_mtime_sec(inode), .tv_nsec = inode_get_mtime_nsec(inode) }; return ts; } static inline struct timespec64 inode_set_mtime_to_ts(struct inode *inode, struct timespec64 ts) { inode->i_mtime_sec = ts.tv_sec; inode->i_mtime_nsec = ts.tv_nsec; return ts; } static inline struct timespec64 inode_set_mtime(struct inode *inode, time64_t sec, long nsec) { struct timespec64 ts = { .tv_sec = sec, .tv_nsec = nsec }; return inode_set_mtime_to_ts(inode, ts); } /* * Multigrain timestamps * * Conditionally use fine-grained ctime and mtime timestamps when there * are users actively observing them via getattr. The primary use-case * for this is NFS clients that use the ctime to distinguish between * different states of the file, and that are often fooled by multiple * operations that occur in the same coarse-grained timer tick. */ #define I_CTIME_QUERIED ((u32)BIT(31)) static inline time64_t inode_get_ctime_sec(const struct inode *inode) { return inode->i_ctime_sec; } static inline long inode_get_ctime_nsec(const struct inode *inode) { return inode->i_ctime_nsec & ~I_CTIME_QUERIED; } static inline struct timespec64 inode_get_ctime(const struct inode *inode) { struct timespec64 ts = { .tv_sec = inode_get_ctime_sec(inode), .tv_nsec = inode_get_ctime_nsec(inode) }; return ts; } struct timespec64 inode_set_ctime_to_ts(struct inode *inode, struct timespec64 ts); /** * inode_set_ctime - set the ctime in the inode * @inode: inode in which to set the ctime * @sec: tv_sec value to set * @nsec: tv_nsec value to set * * Set the ctime in @inode to { @sec, @nsec } */ static inline struct timespec64 inode_set_ctime(struct inode *inode, time64_t sec, long nsec) { struct timespec64 ts = { .tv_sec = sec, .tv_nsec = nsec }; return inode_set_ctime_to_ts(inode, ts); } struct timespec64 simple_inode_init_ts(struct inode *inode); /* * Snapshotting support. */ /* * These are internal functions, please use sb_start_{write,pagefault,intwrite} * instead. */ static inline void __sb_end_write(struct super_block *sb, int level) { percpu_up_read(sb->s_writers.rw_sem + level-1); } static inline void __sb_start_write(struct super_block *sb, int level) { percpu_down_read(sb->s_writers.rw_sem + level - 1); } static inline bool __sb_start_write_trylock(struct super_block *sb, int level) { return percpu_down_read_trylock(sb->s_writers.rw_sem + level - 1); } #define __sb_writers_acquired(sb, lev) \ percpu_rwsem_acquire(&(sb)->s_writers.rw_sem[(lev)-1], 1, _THIS_IP_) #define __sb_writers_release(sb, lev) \ percpu_rwsem_release(&(sb)->s_writers.rw_sem[(lev)-1], _THIS_IP_) /** * __sb_write_started - check if sb freeze level is held * @sb: the super we write to * @level: the freeze level * * * > 0 - sb freeze level is held * * 0 - sb freeze level is not held * * < 0 - !CONFIG_LOCKDEP/LOCK_STATE_UNKNOWN */ static inline int __sb_write_started(const struct super_block *sb, int level) { return lockdep_is_held_type(sb->s_writers.rw_sem + level - 1, 1); } /** * sb_write_started - check if SB_FREEZE_WRITE is held * @sb: the super we write to * * May be false positive with !CONFIG_LOCKDEP/LOCK_STATE_UNKNOWN. */ static inline bool sb_write_started(const struct super_block *sb) { return __sb_write_started(sb, SB_FREEZE_WRITE); } /** * sb_write_not_started - check if SB_FREEZE_WRITE is not held * @sb: the super we write to * * May be false positive with !CONFIG_LOCKDEP/LOCK_STATE_UNKNOWN. */ static inline bool sb_write_not_started(const struct super_block *sb) { return __sb_write_started(sb, SB_FREEZE_WRITE) <= 0; } /** * file_write_started - check if SB_FREEZE_WRITE is held * @file: the file we write to * * May be false positive with !CONFIG_LOCKDEP/LOCK_STATE_UNKNOWN. * May be false positive with !S_ISREG, because file_start_write() has * no effect on !S_ISREG. */ static inline bool file_write_started(const struct file *file) { if (!S_ISREG(file_inode(file)->i_mode)) return true; return sb_write_started(file_inode(file)->i_sb); } /** * file_write_not_started - check if SB_FREEZE_WRITE is not held * @file: the file we write to * * May be false positive with !CONFIG_LOCKDEP/LOCK_STATE_UNKNOWN. * May be false positive with !S_ISREG, because file_start_write() has * no effect on !S_ISREG. */ static inline bool file_write_not_started(const struct file *file) { if (!S_ISREG(file_inode(file)->i_mode)) return true; return sb_write_not_started(file_inode(file)->i_sb); } /** * sb_end_write - drop write access to a superblock * @sb: the super we wrote to * * Decrement number of writers to the filesystem. Wake up possible waiters * wanting to freeze the filesystem. */ static inline void sb_end_write(struct super_block *sb) { __sb_end_write(sb, SB_FREEZE_WRITE); } /** * sb_end_pagefault - drop write access to a superblock from a page fault * @sb: the super we wrote to * * Decrement number of processes handling write page fault to the filesystem. * Wake up possible waiters wanting to freeze the filesystem. */ static inline void sb_end_pagefault(struct super_block *sb) { __sb_end_write(sb, SB_FREEZE_PAGEFAULT); } /** * sb_end_intwrite - drop write access to a superblock for internal fs purposes * @sb: the super we wrote to * * Decrement fs-internal number of writers to the filesystem. Wake up possible * waiters wanting to freeze the filesystem. */ static inline void sb_end_intwrite(struct super_block *sb) { __sb_end_write(sb, SB_FREEZE_FS); } /** * sb_start_write - get write access to a superblock * @sb: the super we write to * * When a process wants to write data or metadata to a file system (i.e. dirty * a page or an inode), it should embed the operation in a sb_start_write() - * sb_end_write() pair to get exclusion against file system freezing. This * function increments number of writers preventing freezing. If the file * system is already frozen, the function waits until the file system is * thawed. * * Since freeze protection behaves as a lock, users have to preserve * ordering of freeze protection and other filesystem locks. Generally, * freeze protection should be the outermost lock. In particular, we have: * * sb_start_write * -> i_mutex (write path, truncate, directory ops, ...) * -> s_umount (freeze_super, thaw_super) */ static inline void sb_start_write(struct super_block *sb) { __sb_start_write(sb, SB_FREEZE_WRITE); } static inline bool sb_start_write_trylock(struct super_block *sb) { return __sb_start_write_trylock(sb, SB_FREEZE_WRITE); } /** * sb_start_pagefault - get write access to a superblock from a page fault * @sb: the super we write to * * When a process starts handling write page fault, it should embed the * operation into sb_start_pagefault() - sb_end_pagefault() pair to get * exclusion against file system freezing. This is needed since the page fault * is going to dirty a page. This function increments number of running page * faults preventing freezing. If the file system is already frozen, the * function waits until the file system is thawed. * * Since page fault freeze protection behaves as a lock, users have to preserve * ordering of freeze protection and other filesystem locks. It is advised to * put sb_start_pagefault() close to mmap_lock in lock ordering. Page fault * handling code implies lock dependency: * * mmap_lock * -> sb_start_pagefault */ static inline void sb_start_pagefault(struct super_block *sb) { __sb_start_write(sb, SB_FREEZE_PAGEFAULT); } /** * sb_start_intwrite - get write access to a superblock for internal fs purposes * @sb: the super we write to * * This is the third level of protection against filesystem freezing. It is * free for use by a filesystem. The only requirement is that it must rank * below sb_start_pagefault. * * For example filesystem can call sb_start_intwrite() when starting a * transaction which somewhat eases handling of freezing for internal sources * of filesystem changes (internal fs threads, discarding preallocation on file * close, etc.). */ static inline void sb_start_intwrite(struct super_block *sb) { __sb_start_write(sb, SB_FREEZE_FS); } static inline bool sb_start_intwrite_trylock(struct super_block *sb) { return __sb_start_write_trylock(sb, SB_FREEZE_FS); } bool inode_owner_or_capable(struct mnt_idmap *idmap, const struct inode *inode); /* * VFS helper functions.. */ int vfs_create(struct mnt_idmap *, struct inode *, struct dentry *, umode_t, bool); int vfs_mkdir(struct mnt_idmap *, struct inode *, struct dentry *, umode_t); int vfs_mknod(struct mnt_idmap *, struct inode *, struct dentry *, umode_t, dev_t); int vfs_symlink(struct mnt_idmap *, struct inode *, struct dentry *, const char *); int vfs_link(struct dentry *, struct mnt_idmap *, struct inode *, struct dentry *, struct inode **); int vfs_rmdir(struct mnt_idmap *, struct inode *, struct dentry *); int vfs_unlink(struct mnt_idmap *, struct inode *, struct dentry *, struct inode **); /** * struct renamedata - contains all information required for renaming * @old_mnt_idmap: idmap of the old mount the inode was found from * @old_dir: parent of source * @old_dentry: source * @new_mnt_idmap: idmap of the new mount the inode was found from * @new_dir: parent of destination * @new_dentry: destination * @delegated_inode: returns an inode needing a delegation break * @flags: rename flags */ struct renamedata { struct mnt_idmap *old_mnt_idmap; struct inode *old_dir; struct dentry *old_dentry; struct mnt_idmap *new_mnt_idmap; struct inode *new_dir; struct dentry *new_dentry; struct inode **delegated_inode; unsigned int flags; } __randomize_layout; int vfs_rename(struct renamedata *); static inline int vfs_whiteout(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry) { return vfs_mknod(idmap, dir, dentry, S_IFCHR | WHITEOUT_MODE, WHITEOUT_DEV); } struct file *kernel_tmpfile_open(struct mnt_idmap *idmap, const struct path *parentpath, umode_t mode, int open_flag, const struct cred *cred); struct file *kernel_file_open(const struct path *path, int flags, const struct cred *cred); int vfs_mkobj(struct dentry *, umode_t, int (*f)(struct dentry *, umode_t, void *), void *); int vfs_fchown(struct file *file, uid_t user, gid_t group); int vfs_fchmod(struct file *file, umode_t mode); int vfs_utimes(const struct path *path, struct timespec64 *times); extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); #ifdef CONFIG_COMPAT extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, unsigned long arg); #else #define compat_ptr_ioctl NULL #endif /* * VFS file helper functions. */ void inode_init_owner(struct mnt_idmap *idmap, struct inode *inode, const struct inode *dir, umode_t mode); extern bool may_open_dev(const struct path *path); umode_t mode_strip_sgid(struct mnt_idmap *idmap, const struct inode *dir, umode_t mode); bool in_group_or_capable(struct mnt_idmap *idmap, const struct inode *inode, vfsgid_t vfsgid); /* * This is the "filldir" function type, used by readdir() to let * the kernel specify what kind of dirent layout it wants to have. * This allows the kernel to read directories into kernel space or * to have different dirent layouts depending on the binary type. * Return 'true' to keep going and 'false' if there are no more entries. */ struct dir_context; typedef bool (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64, unsigned); struct dir_context { filldir_t actor; loff_t pos; }; /* * These flags let !MMU mmap() govern direct device mapping vs immediate * copying more easily for MAP_PRIVATE, especially for ROM filesystems. * * NOMMU_MAP_COPY: Copy can be mapped (MAP_PRIVATE) * NOMMU_MAP_DIRECT: Can be mapped directly (MAP_SHARED) * NOMMU_MAP_READ: Can be mapped for reading * NOMMU_MAP_WRITE: Can be mapped for writing * NOMMU_MAP_EXEC: Can be mapped for execution */ #define NOMMU_MAP_COPY 0x00000001 #define NOMMU_MAP_DIRECT 0x00000008 #define NOMMU_MAP_READ VM_MAYREAD #define NOMMU_MAP_WRITE VM_MAYWRITE #define NOMMU_MAP_EXEC VM_MAYEXEC #define NOMMU_VMFLAGS \ (NOMMU_MAP_READ | NOMMU_MAP_WRITE | NOMMU_MAP_EXEC) /* * These flags control the behavior of the remap_file_range function pointer. * If it is called with len == 0 that means "remap to end of source file". * See Documentation/filesystems/vfs.rst for more details about this call. * * REMAP_FILE_DEDUP: only remap if contents identical (i.e. deduplicate) * REMAP_FILE_CAN_SHORTEN: caller can handle a shortened request */ #define REMAP_FILE_DEDUP (1 << 0) #define REMAP_FILE_CAN_SHORTEN (1 << 1) /* * These flags signal that the caller is ok with altering various aspects of * the behavior of the remap operation. The changes must be made by the * implementation; the vfs remap helper functions can take advantage of them. * Flags in this category exist to preserve the quirky behavior of the hoisted * btrfs clone/dedupe ioctls. */ #define REMAP_FILE_ADVISORY (REMAP_FILE_CAN_SHORTEN) /* * These flags control the behavior of vfs_copy_file_range(). * They are not available to the user via syscall. * * COPY_FILE_SPLICE: call splice direct instead of fs clone/copy ops */ #define COPY_FILE_SPLICE (1 << 0) struct iov_iter; struct io_uring_cmd; struct offset_ctx; typedef unsigned int __bitwise fop_flags_t; struct file_operations { struct module *owner; fop_flags_t fop_flags; loff_t (*llseek) (struct file *, loff_t, int); ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); int (*iopoll)(struct kiocb *kiocb, struct io_comp_batch *, unsigned int flags); int (*iterate_shared) (struct file *, struct dir_context *); __poll_t (*poll) (struct file *, struct poll_table_struct *); long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); long (*compat_ioctl) (struct file *, unsigned int, unsigned long); int (*mmap) (struct file *, struct vm_area_struct *); int (*open) (struct inode *, struct file *); int (*flush) (struct file *, fl_owner_t id); int (*release) (struct inode *, struct file *); int (*fsync) (struct file *, loff_t, loff_t, int datasync); int (*fasync) (int, struct file *, int); int (*lock) (struct file *, int, struct file_lock *); unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); int (*check_flags)(int); int (*flock) (struct file *, int, struct file_lock *); ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int); ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int); void (*splice_eof)(struct file *file); int (*setlease)(struct file *, int, struct file_lease **, void **); long (*fallocate)(struct file *file, int mode, loff_t offset, loff_t len); void (*show_fdinfo)(struct seq_file *m, struct file *f); #ifndef CONFIG_MMU unsigned (*mmap_capabilities)(struct file *); #endif ssize_t (*copy_file_range)(struct file *, loff_t, struct file *, loff_t, size_t, unsigned int); loff_t (*remap_file_range)(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t len, unsigned int remap_flags); int (*fadvise)(struct file *, loff_t, loff_t, int); int (*uring_cmd)(struct io_uring_cmd *ioucmd, unsigned int issue_flags); int (*uring_cmd_iopoll)(struct io_uring_cmd *, struct io_comp_batch *, unsigned int poll_flags); } __randomize_layout; /* Supports async buffered reads */ #define FOP_BUFFER_RASYNC ((__force fop_flags_t)(1 << 0)) /* Supports async buffered writes */ #define FOP_BUFFER_WASYNC ((__force fop_flags_t)(1 << 1)) /* Supports synchronous page faults for mappings */ #define FOP_MMAP_SYNC ((__force fop_flags_t)(1 << 2)) /* Supports non-exclusive O_DIRECT writes from multiple threads */ #define FOP_DIO_PARALLEL_WRITE ((__force fop_flags_t)(1 << 3)) /* Contains huge pages */ #define FOP_HUGE_PAGES ((__force fop_flags_t)(1 << 4)) /* Treat loff_t as unsigned (e.g., /dev/mem) */ #define FOP_UNSIGNED_OFFSET ((__force fop_flags_t)(1 << 5)) /* Supports asynchronous lock callbacks */ #define FOP_ASYNC_LOCK ((__force fop_flags_t)(1 << 6)) /* File system supports uncached read/write buffered IO */ #define FOP_DONTCACHE ((__force fop_flags_t)(1 << 7)) /* Wrap a directory iterator that needs exclusive inode access */ int wrap_directory_iterator(struct file *, struct dir_context *, int (*) (struct file *, struct dir_context *)); #define WRAP_DIR_ITER(x) \ static int shared_##x(struct file *file , struct dir_context *ctx) \ { return wrap_directory_iterator(file, ctx, x); } struct inode_operations { struct dentry * (*lookup) (struct inode *,struct dentry *, unsigned int); const char * (*get_link) (struct dentry *, struct inode *, struct delayed_call *); int (*permission) (struct mnt_idmap *, struct inode *, int); struct posix_acl * (*get_inode_acl)(struct inode *, int, bool); int (*readlink) (struct dentry *, char __user *,int); int (*create) (struct mnt_idmap *, struct inode *,struct dentry *, umode_t, bool); int (*link) (struct dentry *,struct inode *,struct dentry *); int (*unlink) (struct inode *,struct dentry *); int (*symlink) (struct mnt_idmap *, struct inode *,struct dentry *, const char *); int (*mkdir) (struct mnt_idmap *, struct inode *,struct dentry *, umode_t); int (*rmdir) (struct inode *,struct dentry *); int (*mknod) (struct mnt_idmap *, struct inode *,struct dentry *, umode_t,dev_t); int (*rename) (struct mnt_idmap *, struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int); int (*setattr) (struct mnt_idmap *, struct dentry *, struct iattr *); int (*getattr) (struct mnt_idmap *, const struct path *, struct kstat *, u32, unsigned int); ssize_t (*listxattr) (struct dentry *, char *, size_t); int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len); int (*update_time)(struct inode *, int); int (*atomic_open)(struct inode *, struct dentry *, struct file *, unsigned open_flag, umode_t create_mode); int (*tmpfile) (struct mnt_idmap *, struct inode *, struct file *, umode_t); struct posix_acl *(*get_acl)(struct mnt_idmap *, struct dentry *, int); int (*set_acl)(struct mnt_idmap *, struct dentry *, struct posix_acl *, int); int (*fileattr_set)(struct mnt_idmap *idmap, struct dentry *dentry, struct fileattr *fa); int (*fileattr_get)(struct dentry *dentry, struct fileattr *fa); struct offset_ctx *(*get_offset_ctx)(struct inode *inode); } ____cacheline_aligned; static inline int call_mmap(struct file *file, struct vm_area_struct *vma) { return file->f_op->mmap(file, vma); } extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *); extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *); extern ssize_t vfs_copy_file_range(struct file *, loff_t , struct file *, loff_t, size_t, unsigned int); int remap_verify_area(struct file *file, loff_t pos, loff_t len, bool write); int __generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *len, unsigned int remap_flags, const struct iomap_ops *dax_read_ops); int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *count, unsigned int remap_flags); extern loff_t vfs_clone_file_range(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t len, unsigned int remap_flags); extern int vfs_dedupe_file_range(struct file *file, struct file_dedupe_range *same); extern loff_t vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos, struct file *dst_file, loff_t dst_pos, loff_t len, unsigned int remap_flags); /** * enum freeze_holder - holder of the freeze * @FREEZE_HOLDER_KERNEL: kernel wants to freeze or thaw filesystem * @FREEZE_HOLDER_USERSPACE: userspace wants to freeze or thaw filesystem * @FREEZE_MAY_NEST: whether nesting freeze and thaw requests is allowed * * Indicate who the owner of the freeze or thaw request is and whether * the freeze needs to be exclusive or can nest. * Without @FREEZE_MAY_NEST, multiple freeze and thaw requests from the * same holder aren't allowed. It is however allowed to hold a single * @FREEZE_HOLDER_USERSPACE and a single @FREEZE_HOLDER_KERNEL freeze at * the same time. This is relied upon by some filesystems during online * repair or similar. */ enum freeze_holder { FREEZE_HOLDER_KERNEL = (1U << 0), FREEZE_HOLDER_USERSPACE = (1U << 1), FREEZE_MAY_NEST = (1U << 2), }; struct super_operations { struct inode *(*alloc_inode)(struct super_block *sb); void (*destroy_inode)(struct inode *); void (*free_inode)(struct inode *); void (*dirty_inode) (struct inode *, int flags); int (*write_inode) (struct inode *, struct writeback_control *wbc); int (*drop_inode) (struct inode *); void (*evict_inode) (struct inode *); void (*put_super) (struct super_block *); int (*sync_fs)(struct super_block *sb, int wait); int (*freeze_super) (struct super_block *, enum freeze_holder who); int (*freeze_fs) (struct super_block *); int (*thaw_super) (struct super_block *, enum freeze_holder who); int (*unfreeze_fs) (struct super_block *); int (*statfs) (struct dentry *, struct kstatfs *); int (*remount_fs) (struct super_block *, int *, char *); void (*umount_begin) (struct super_block *); int (*show_options)(struct seq_file *, struct dentry *); int (*show_devname)(struct seq_file *, struct dentry *); int (*show_path)(struct seq_file *, struct dentry *); int (*show_stats)(struct seq_file *, struct dentry *); #ifdef CONFIG_QUOTA ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t); ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); struct dquot __rcu **(*get_dquots)(struct inode *); #endif long (*nr_cached_objects)(struct super_block *, struct shrink_control *); long (*free_cached_objects)(struct super_block *, struct shrink_control *); void (*shutdown)(struct super_block *sb); }; /* * Inode flags - they have no relation to superblock flags now */ #define S_SYNC (1 << 0) /* Writes are synced at once */ #define S_NOATIME (1 << 1) /* Do not update access times */ #define S_APPEND (1 << 2) /* Append-only file */ #define S_IMMUTABLE (1 << 3) /* Immutable file */ #define S_DEAD (1 << 4) /* removed, but still open directory */ #define S_NOQUOTA (1 << 5) /* Inode is not counted to quota */ #define S_DIRSYNC (1 << 6) /* Directory modifications are synchronous */ #define S_NOCMTIME (1 << 7) /* Do not update file c/mtime */ #define S_SWAPFILE (1 << 8) /* Do not truncate: swapon got its bmaps */ #define S_PRIVATE (1 << 9) /* Inode is fs-internal */ #define S_IMA (1 << 10) /* Inode has an associated IMA struct */ #define S_AUTOMOUNT (1 << 11) /* Automount/referral quasi-directory */ #define S_NOSEC (1 << 12) /* no suid or xattr security attributes */ #ifdef CONFIG_FS_DAX #define S_DAX (1 << 13) /* Direct Access, avoiding the page cache */ #else #define S_DAX 0 /* Make all the DAX code disappear */ #endif #define S_ENCRYPTED (1 << 14) /* Encrypted file (using fs/crypto/) */ #define S_CASEFOLD (1 << 15) /* Casefolded file */ #define S_VERITY (1 << 16) /* Verity file (using fs/verity/) */ #define S_KERNEL_FILE (1 << 17) /* File is in use by the kernel (eg. fs/cachefiles) */ #define S_ANON_INODE (1 << 19) /* Inode is an anonymous inode */ /* * Note that nosuid etc flags are inode-specific: setting some file-system * flags just means all the inodes inherit those flags by default. It might be * possible to override it selectively if you really wanted to with some * ioctl() that is not currently implemented. * * Exception: SB_RDONLY is always applied to the entire file system. * * Unfortunately, it is possible to change a filesystems flags with it mounted * with files in use. This means that all of the inodes will not have their * i_flags updated. Hence, i_flags no longer inherit the superblock mount * flags, so these have to be checked separately. -- [email protected] */ #define __IS_FLG(inode, flg) ((inode)->i_sb->s_flags & (flg)) static inline bool sb_rdonly(const struct super_block *sb) { return sb->s_flags & SB_RDONLY; } #define IS_RDONLY(inode) sb_rdonly((inode)->i_sb) #define IS_SYNC(inode) (__IS_FLG(inode, SB_SYNCHRONOUS) || \ ((inode)->i_flags & S_SYNC)) #define IS_DIRSYNC(inode) (__IS_FLG(inode, SB_SYNCHRONOUS|SB_DIRSYNC) || \ ((inode)->i_flags & (S_SYNC|S_DIRSYNC))) #define IS_MANDLOCK(inode) __IS_FLG(inode, SB_MANDLOCK) #define IS_NOATIME(inode) __IS_FLG(inode, SB_RDONLY|SB_NOATIME) #define IS_I_VERSION(inode) __IS_FLG(inode, SB_I_VERSION) #define IS_NOQUOTA(inode) ((inode)->i_flags & S_NOQUOTA) #define IS_APPEND(inode) ((inode)->i_flags & S_APPEND) #define IS_IMMUTABLE(inode) ((inode)->i_flags & S_IMMUTABLE) #ifdef CONFIG_FS_POSIX_ACL #define IS_POSIXACL(inode) __IS_FLG(inode, SB_POSIXACL) #else #define IS_POSIXACL(inode) 0 #endif #define IS_DEADDIR(inode) ((inode)->i_flags & S_DEAD) #define IS_NOCMTIME(inode) ((inode)->i_flags & S_NOCMTIME) #ifdef CONFIG_SWAP #define IS_SWAPFILE(inode) ((inode)->i_flags & S_SWAPFILE) #else #define IS_SWAPFILE(inode) ((void)(inode), 0U) #endif #define IS_PRIVATE(inode) ((inode)->i_flags & S_PRIVATE) #define IS_IMA(inode) ((inode)->i_flags & S_IMA) #define IS_AUTOMOUNT(inode) ((inode)->i_flags & S_AUTOMOUNT) #define IS_NOSEC(inode) ((inode)->i_flags & S_NOSEC) #define IS_DAX(inode) ((inode)->i_flags & S_DAX) #define IS_ENCRYPTED(inode) ((inode)->i_flags & S_ENCRYPTED) #define IS_CASEFOLDED(inode) ((inode)->i_flags & S_CASEFOLD) #define IS_VERITY(inode) ((inode)->i_flags & S_VERITY) #define IS_WHITEOUT(inode) (S_ISCHR(inode->i_mode) && \ (inode)->i_rdev == WHITEOUT_DEV) #define IS_ANON_FILE(inode) ((inode)->i_flags & S_ANON_INODE) static inline bool HAS_UNMAPPED_ID(struct mnt_idmap *idmap, struct inode *inode) { return !vfsuid_valid(i_uid_into_vfsuid(idmap, inode)) || !vfsgid_valid(i_gid_into_vfsgid(idmap, inode)); } static inline void init_sync_kiocb(struct kiocb *kiocb, struct file *filp) { *kiocb = (struct kiocb) { .ki_filp = filp, .ki_flags = filp->f_iocb_flags, .ki_ioprio = get_current_ioprio(), }; } static inline void kiocb_clone(struct kiocb *kiocb, struct kiocb *kiocb_src, struct file *filp) { *kiocb = (struct kiocb) { .ki_filp = filp, .ki_flags = kiocb_src->ki_flags, .ki_ioprio = kiocb_src->ki_ioprio, .ki_pos = kiocb_src->ki_pos, }; } /* * Inode state bits. Protected by inode->i_lock * * Four bits determine the dirty state of the inode: I_DIRTY_SYNC, * I_DIRTY_DATASYNC, I_DIRTY_PAGES, and I_DIRTY_TIME. * * Four bits define the lifetime of an inode. Initially, inodes are I_NEW, * until that flag is cleared. I_WILL_FREE, I_FREEING and I_CLEAR are set at * various stages of removing an inode. * * Two bits are used for locking and completion notification, I_NEW and I_SYNC. * * I_DIRTY_SYNC Inode is dirty, but doesn't have to be written on * fdatasync() (unless I_DIRTY_DATASYNC is also set). * Timestamp updates are the usual cause. * I_DIRTY_DATASYNC Data-related inode changes pending. We keep track of * these changes separately from I_DIRTY_SYNC so that we * don't have to write inode on fdatasync() when only * e.g. the timestamps have changed. * I_DIRTY_PAGES Inode has dirty pages. Inode itself may be clean. * I_DIRTY_TIME The inode itself has dirty timestamps, and the * lazytime mount option is enabled. We keep track of this * separately from I_DIRTY_SYNC in order to implement * lazytime. This gets cleared if I_DIRTY_INODE * (I_DIRTY_SYNC and/or I_DIRTY_DATASYNC) gets set. But * I_DIRTY_TIME can still be set if I_DIRTY_SYNC is already * in place because writeback might already be in progress * and we don't want to lose the time update * I_NEW Serves as both a mutex and completion notification. * New inodes set I_NEW. If two processes both create * the same inode, one of them will release its inode and * wait for I_NEW to be released before returning. * Inodes in I_WILL_FREE, I_FREEING or I_CLEAR state can * also cause waiting on I_NEW, without I_NEW actually * being set. find_inode() uses this to prevent returning * nearly-dead inodes. * I_WILL_FREE Must be set when calling write_inode_now() if i_count * is zero. I_FREEING must be set when I_WILL_FREE is * cleared. * I_FREEING Set when inode is about to be freed but still has dirty * pages or buffers attached or the inode itself is still * dirty. * I_CLEAR Added by clear_inode(). In this state the inode is * clean and can be destroyed. Inode keeps I_FREEING. * * Inodes that are I_WILL_FREE, I_FREEING or I_CLEAR are * prohibited for many purposes. iget() must wait for * the inode to be completely released, then create it * anew. Other functions will just ignore such inodes, * if appropriate. I_NEW is used for waiting. * * I_SYNC Writeback of inode is running. The bit is set during * data writeback, and cleared with a wakeup on the bit * address once it is done. The bit is also used to pin * the inode in memory for flusher thread. * * I_REFERENCED Marks the inode as recently references on the LRU list. * * I_WB_SWITCH Cgroup bdi_writeback switching in progress. Used to * synchronize competing switching instances and to tell * wb stat updates to grab the i_pages lock. See * inode_switch_wbs_work_fn() for details. * * I_OVL_INUSE Used by overlayfs to get exclusive ownership on upper * and work dirs among overlayfs mounts. * * I_CREATING New object's inode in the middle of setting up. * * I_DONTCACHE Evict inode as soon as it is not used anymore. * * I_SYNC_QUEUED Inode is queued in b_io or b_more_io writeback lists. * Used to detect that mark_inode_dirty() should not move * inode between dirty lists. * * I_PINNING_FSCACHE_WB Inode is pinning an fscache object for writeback. * * I_LRU_ISOLATING Inode is pinned being isolated from LRU without holding * i_count. * * Q: What is the difference between I_WILL_FREE and I_FREEING? * * __I_{SYNC,NEW,LRU_ISOLATING} are used to derive unique addresses to wait * upon. There's one free address left. */ #define __I_NEW 0 #define I_NEW (1 << __I_NEW) #define __I_SYNC 1 #define I_SYNC (1 << __I_SYNC) #define __I_LRU_ISOLATING 2 #define I_LRU_ISOLATING (1 << __I_LRU_ISOLATING) #define I_DIRTY_SYNC (1 << 3) #define I_DIRTY_DATASYNC (1 << 4) #define I_DIRTY_PAGES (1 << 5) #define I_WILL_FREE (1 << 6) #define I_FREEING (1 << 7) #define I_CLEAR (1 << 8) #define I_REFERENCED (1 << 9) #define I_LINKABLE (1 << 10) #define I_DIRTY_TIME (1 << 11) #define I_WB_SWITCH (1 << 12) #define I_OVL_INUSE (1 << 13) #define I_CREATING (1 << 14) #define I_DONTCACHE (1 << 15) #define I_SYNC_QUEUED (1 << 16) #define I_PINNING_NETFS_WB (1 << 17) #define I_DIRTY_INODE (I_DIRTY_SYNC | I_DIRTY_DATASYNC) #define I_DIRTY (I_DIRTY_INODE | I_DIRTY_PAGES) #define I_DIRTY_ALL (I_DIRTY | I_DIRTY_TIME) extern void __mark_inode_dirty(struct inode *, int); static inline void mark_inode_dirty(struct inode *inode) { __mark_inode_dirty(inode, I_DIRTY); } static inline void mark_inode_dirty_sync(struct inode *inode) { __mark_inode_dirty(inode, I_DIRTY_SYNC); } /* * Returns true if the given inode itself only has dirty timestamps (its pages * may still be dirty) and isn't currently being allocated or freed. * Filesystems should call this if when writing an inode when lazytime is * enabled, they want to opportunistically write the timestamps of other inodes * located very nearby on-disk, e.g. in the same inode block. This returns true * if the given inode is in need of such an opportunistic update. Requires * i_lock, or at least later re-checking under i_lock. */ static inline bool inode_is_dirtytime_only(struct inode *inode) { return (inode->i_state & (I_DIRTY_TIME | I_NEW | I_FREEING | I_WILL_FREE)) == I_DIRTY_TIME; } extern void inc_nlink(struct inode *inode); extern void drop_nlink(struct inode *inode); extern void clear_nlink(struct inode *inode); extern void set_nlink(struct inode *inode, unsigned int nlink); static inline void inode_inc_link_count(struct inode *inode) { inc_nlink(inode); mark_inode_dirty(inode); } static inline void inode_dec_link_count(struct inode *inode) { drop_nlink(inode); mark_inode_dirty(inode); } enum file_time_flags { S_ATIME = 1, S_MTIME = 2, S_CTIME = 4, S_VERSION = 8, }; extern bool atime_needs_update(const struct path *, struct inode *); extern void touch_atime(const struct path *); int inode_update_time(struct inode *inode, int flags); static inline void file_accessed(struct file *file) { if (!(file->f_flags & O_NOATIME)) touch_atime(&file->f_path); } extern int file_modified(struct file *file); int kiocb_modified(struct kiocb *iocb); int sync_inode_metadata(struct inode *inode, int wait); struct file_system_type { const char *name; int fs_flags; #define FS_REQUIRES_DEV 1 #define FS_BINARY_MOUNTDATA 2 #define FS_HAS_SUBTYPE 4 #define FS_USERNS_MOUNT 8 /* Can be mounted by userns root */ #define FS_DISALLOW_NOTIFY_PERM 16 /* Disable fanotify permission events */ #define FS_ALLOW_IDMAP 32 /* FS has been updated to handle vfs idmappings. */ #define FS_MGTIME 64 /* FS uses multigrain timestamps */ #define FS_RENAME_DOES_D_MOVE 32768 /* FS will handle d_move() during rename() internally. */ int (*init_fs_context)(struct fs_context *); const struct fs_parameter_spec *parameters; struct dentry *(*mount) (struct file_system_type *, int, const char *, void *); void (*kill_sb) (struct super_block *); struct module *owner; struct file_system_type * next; struct hlist_head fs_supers; struct lock_class_key s_lock_key; struct lock_class_key s_umount_key; struct lock_class_key s_vfs_rename_key; struct lock_class_key s_writers_key[SB_FREEZE_LEVELS]; struct lock_class_key i_lock_key; struct lock_class_key i_mutex_key; struct lock_class_key invalidate_lock_key; struct lock_class_key i_mutex_dir_key; }; #define MODULE_ALIAS_FS(NAME) MODULE_ALIAS("fs-" NAME) /** * is_mgtime: is this inode using multigrain timestamps * @inode: inode to test for multigrain timestamps * * Return true if the inode uses multigrain timestamps, false otherwise. */ static inline bool is_mgtime(const struct inode *inode) { return inode->i_opflags & IOP_MGTIME; } extern struct dentry *mount_bdev(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, int (*fill_super)(struct super_block *, void *, int)); extern struct dentry *mount_single(struct file_system_type *fs_type, int flags, void *data, int (*fill_super)(struct super_block *, void *, int)); extern struct dentry *mount_nodev(struct file_system_type *fs_type, int flags, void *data, int (*fill_super)(struct super_block *, void *, int)); extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path); void retire_super(struct super_block *sb); void generic_shutdown_super(struct super_block *sb); void kill_block_super(struct super_block *sb); void kill_anon_super(struct super_block *sb); void kill_litter_super(struct super_block *sb); void deactivate_super(struct super_block *sb); void deactivate_locked_super(struct super_block *sb); int set_anon_super(struct super_block *s, void *data); int set_anon_super_fc(struct super_block *s, struct fs_context *fc); int get_anon_bdev(dev_t *); void free_anon_bdev(dev_t); struct super_block *sget_fc(struct fs_context *fc, int (*test)(struct super_block *, struct fs_context *), int (*set)(struct super_block *, struct fs_context *)); struct super_block *sget(struct file_system_type *type, int (*test)(struct super_block *,void *), int (*set)(struct super_block *,void *), int flags, void *data); struct super_block *sget_dev(struct fs_context *fc, dev_t dev); /* Alas, no aliases. Too much hassle with bringing module.h everywhere */ #define fops_get(fops) ({ \ const struct file_operations *_fops = (fops); \ (((_fops) && try_module_get((_fops)->owner) ? (_fops) : NULL)); \ }) #define fops_put(fops) ({ \ const struct file_operations *_fops = (fops); \ if (_fops) \ module_put((_fops)->owner); \ }) /* * This one is to be used *ONLY* from ->open() instances. * fops must be non-NULL, pinned down *and* module dependencies * should be sufficient to pin the caller down as well. */ #define replace_fops(f, fops) \ do { \ struct file *__file = (f); \ fops_put(__file->f_op); \ BUG_ON(!(__file->f_op = (fops))); \ } while(0) extern int register_filesystem(struct file_system_type *); extern int unregister_filesystem(struct file_system_type *); extern int vfs_statfs(const struct path *, struct kstatfs *); extern int user_statfs(const char __user *, struct kstatfs *); extern int fd_statfs(int, struct kstatfs *); int freeze_super(struct super_block *super, enum freeze_holder who); int thaw_super(struct super_block *super, enum freeze_holder who); extern __printf(2, 3) int super_setup_bdi_name(struct super_block *sb, char *fmt, ...); extern int super_setup_bdi(struct super_block *sb); static inline void super_set_uuid(struct super_block *sb, const u8 *uuid, unsigned len) { if (WARN_ON(len > sizeof(sb->s_uuid))) len = sizeof(sb->s_uuid); sb->s_uuid_len = len; memcpy(&sb->s_uuid, uuid, len); } /* set sb sysfs name based on sb->s_bdev */ static inline void super_set_sysfs_name_bdev(struct super_block *sb) { snprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), "%pg", sb->s_bdev); } /* set sb sysfs name based on sb->s_uuid */ static inline void super_set_sysfs_name_uuid(struct super_block *sb) { WARN_ON(sb->s_uuid_len != sizeof(sb->s_uuid)); snprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), "%pU", sb->s_uuid.b); } /* set sb sysfs name based on sb->s_id */ static inline void super_set_sysfs_name_id(struct super_block *sb) { strscpy(sb->s_sysfs_name, sb->s_id, sizeof(sb->s_sysfs_name)); } /* try to use something standard before you use this */ __printf(2, 3) static inline void super_set_sysfs_name_generic(struct super_block *sb, const char *fmt, ...) { va_list args; va_start(args, fmt); vsnprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), fmt, args); va_end(args); } extern int current_umask(void); extern void ihold(struct inode * inode); extern void iput(struct inode *); int inode_update_timestamps(struct inode *inode, int flags); int generic_update_time(struct inode *, int); /* /sys/fs */ extern struct kobject *fs_kobj; #define MAX_RW_COUNT (INT_MAX & PAGE_MASK) /* fs/open.c */ struct audit_names; struct filename { const char *name; /* pointer to actual string */ const __user char *uptr; /* original userland pointer */ atomic_t refcnt; struct audit_names *aname; const char iname[]; }; static_assert(offsetof(struct filename, iname) % sizeof(long) == 0); static inline struct mnt_idmap *file_mnt_idmap(const struct file *file) { return mnt_idmap(file->f_path.mnt); } /** * is_idmapped_mnt - check whether a mount is mapped * @mnt: the mount to check * * If @mnt has an non @nop_mnt_idmap attached to it then @mnt is mapped. * * Return: true if mount is mapped, false if not. */ static inline bool is_idmapped_mnt(const struct vfsmount *mnt) { return mnt_idmap(mnt) != &nop_mnt_idmap; } extern long vfs_truncate(const struct path *, loff_t); int do_truncate(struct mnt_idmap *, struct dentry *, loff_t start, unsigned int time_attrs, struct file *filp); extern int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len); extern long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode); extern struct file *file_open_name(struct filename *, int, umode_t); extern struct file *filp_open(const char *, int, umode_t); extern struct file *file_open_root(const struct path *, const char *, int, umode_t); static inline struct file *file_open_root_mnt(struct vfsmount *mnt, const char *name, int flags, umode_t mode) { return file_open_root(&(struct path){.mnt = mnt, .dentry = mnt->mnt_root}, name, flags, mode); } struct file *dentry_open(const struct path *path, int flags, const struct cred *creds); struct file *dentry_open_nonotify(const struct path *path, int flags, const struct cred *cred); struct file *dentry_create(const struct path *path, int flags, umode_t mode, const struct cred *cred); struct path *backing_file_user_path(struct file *f); /* * When mmapping a file on a stackable filesystem (e.g., overlayfs), the file * stored in ->vm_file is a backing file whose f_inode is on the underlying * filesystem. When the mapped file path and inode number are displayed to * user (e.g. via /proc/<pid>/maps), these helpers should be used to get the * path and inode number to display to the user, which is the path of the fd * that user has requested to map and the inode number that would be returned * by fstat() on that same fd. */ /* Get the path to display in /proc/<pid>/maps */ static inline const struct path *file_user_path(struct file *f) { if (unlikely(f->f_mode & FMODE_BACKING)) return backing_file_user_path(f); return &f->f_path; } /* Get the inode whose inode number to display in /proc/<pid>/maps */ static inline const struct inode *file_user_inode(struct file *f) { if (unlikely(f->f_mode & FMODE_BACKING)) return d_inode(backing_file_user_path(f)->dentry); return file_inode(f); } static inline struct file *file_clone_open(struct file *file) { return dentry_open(&file->f_path, file->f_flags, file->f_cred); } extern int filp_close(struct file *, fl_owner_t id); extern struct filename *getname_flags(const char __user *, int); extern struct filename *getname_uflags(const char __user *, int); extern struct filename *getname(const char __user *); extern struct filename *getname_kernel(const char *); extern struct filename *__getname_maybe_null(const char __user *); static inline struct filename *getname_maybe_null(const char __user *name, int flags) { if (!(flags & AT_EMPTY_PATH)) return getname(name); if (!name) return NULL; return __getname_maybe_null(name); } extern void putname(struct filename *name); extern int finish_open(struct file *file, struct dentry *dentry, int (*open)(struct inode *, struct file *)); extern int finish_no_open(struct file *file, struct dentry *dentry); /* Helper for the simple case when original dentry is used */ static inline int finish_open_simple(struct file *file, int error) { if (error) return error; return finish_open(file, file->f_path.dentry, NULL); } /* fs/dcache.c */ extern void __init vfs_caches_init_early(void); extern void __init vfs_caches_init(void); extern struct kmem_cache *names_cachep; #define __getname() kmem_cache_alloc(names_cachep, GFP_KERNEL) #define __putname(name) kmem_cache_free(names_cachep, (void *)(name)) extern struct super_block *blockdev_superblock; static inline bool sb_is_blkdev_sb(struct super_block *sb) { return IS_ENABLED(CONFIG_BLOCK) && sb == blockdev_superblock; } void emergency_thaw_all(void); extern int sync_filesystem(struct super_block *); extern const struct file_operations def_blk_fops; extern const struct file_operations def_chr_fops; /* fs/char_dev.c */ #define CHRDEV_MAJOR_MAX 512 /* Marks the bottom of the first segment of free char majors */ #define CHRDEV_MAJOR_DYN_END 234 /* Marks the top and bottom of the second segment of free char majors */ #define CHRDEV_MAJOR_DYN_EXT_START 511 #define CHRDEV_MAJOR_DYN_EXT_END 384 extern int alloc_chrdev_region(dev_t *, unsigned, unsigned, const char *); extern int register_chrdev_region(dev_t, unsigned, const char *); extern int __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops); extern void __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name); extern void unregister_chrdev_region(dev_t, unsigned); extern void chrdev_show(struct seq_file *,off_t); static inline int register_chrdev(unsigned int major, const char *name, const struct file_operations *fops) { return __register_chrdev(major, 0, 256, name, fops); } static inline void unregister_chrdev(unsigned int major, const char *name) { __unregister_chrdev(major, 0, 256, name); } extern void init_special_inode(struct inode *, umode_t, dev_t); /* Invalid inode operations -- fs/bad_inode.c */ extern void make_bad_inode(struct inode *); extern bool is_bad_inode(struct inode *); extern int __must_check file_fdatawait_range(struct file *file, loff_t lstart, loff_t lend); extern int __must_check file_check_and_advance_wb_err(struct file *file); extern int __must_check file_write_and_wait_range(struct file *file, loff_t start, loff_t end); int filemap_fdatawrite_range_kick(struct address_space *mapping, loff_t start, loff_t end); static inline int file_write_and_wait(struct file *file) { return file_write_and_wait_range(file, 0, LLONG_MAX); } extern int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync); extern int vfs_fsync(struct file *file, int datasync); extern int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, unsigned int flags); static inline bool iocb_is_dsync(const struct kiocb *iocb) { return (iocb->ki_flags & IOCB_DSYNC) || IS_SYNC(iocb->ki_filp->f_mapping->host); } /* * Sync the bytes written if this was a synchronous write. Expect ki_pos * to already be updated for the write, and will return either the amount * of bytes passed in, or an error if syncing the file failed. */ static inline ssize_t generic_write_sync(struct kiocb *iocb, ssize_t count) { if (iocb_is_dsync(iocb)) { int ret = vfs_fsync_range(iocb->ki_filp, iocb->ki_pos - count, iocb->ki_pos - 1, (iocb->ki_flags & IOCB_SYNC) ? 0 : 1); if (ret) return ret; } else if (iocb->ki_flags & IOCB_DONTCACHE) { struct address_space *mapping = iocb->ki_filp->f_mapping; filemap_fdatawrite_range_kick(mapping, iocb->ki_pos - count, iocb->ki_pos - 1); } return count; } extern void emergency_sync(void); extern void emergency_remount(void); #ifdef CONFIG_BLOCK extern int bmap(struct inode *inode, sector_t *block); #else static inline int bmap(struct inode *inode, sector_t *block) { return -EINVAL; } #endif int notify_change(struct mnt_idmap *, struct dentry *, struct iattr *, struct inode **); int inode_permission(struct mnt_idmap *, struct inode *, int); int generic_permission(struct mnt_idmap *, struct inode *, int); static inline int file_permission(struct file *file, int mask) { return inode_permission(file_mnt_idmap(file), file_inode(file), mask); } static inline int path_permission(const struct path *path, int mask) { return inode_permission(mnt_idmap(path->mnt), d_inode(path->dentry), mask); } int __check_sticky(struct mnt_idmap *idmap, struct inode *dir, struct inode *inode); static inline bool execute_ok(struct inode *inode) { return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode); } static inline bool inode_wrong_type(const struct inode *inode, umode_t mode) { return (inode->i_mode ^ mode) & S_IFMT; } /** * file_start_write - get write access to a superblock for regular file io * @file: the file we want to write to * * This is a variant of sb_start_write() which is a noop on non-regualr file. * Should be matched with a call to file_end_write(). */ static inline void file_start_write(struct file *file) { if (!S_ISREG(file_inode(file)->i_mode)) return; sb_start_write(file_inode(file)->i_sb); } static inline bool file_start_write_trylock(struct file *file) { if (!S_ISREG(file_inode(file)->i_mode)) return true; return sb_start_write_trylock(file_inode(file)->i_sb); } /** * file_end_write - drop write access to a superblock of a regular file * @file: the file we wrote to * * Should be matched with a call to file_start_write(). */ static inline void file_end_write(struct file *file) { if (!S_ISREG(file_inode(file)->i_mode)) return; sb_end_write(file_inode(file)->i_sb); } /** * kiocb_start_write - get write access to a superblock for async file io * @iocb: the io context we want to submit the write with * * This is a variant of sb_start_write() for async io submission. * Should be matched with a call to kiocb_end_write(). */ static inline void kiocb_start_write(struct kiocb *iocb) { struct inode *inode = file_inode(iocb->ki_filp); sb_start_write(inode->i_sb); /* * Fool lockdep by telling it the lock got released so that it * doesn't complain about the held lock when we return to userspace. */ __sb_writers_release(inode->i_sb, SB_FREEZE_WRITE); } /** * kiocb_end_write - drop write access to a superblock after async file io * @iocb: the io context we sumbitted the write with * * Should be matched with a call to kiocb_start_write(). */ static inline void kiocb_end_write(struct kiocb *iocb) { struct inode *inode = file_inode(iocb->ki_filp); /* * Tell lockdep we inherited freeze protection from submission thread. */ __sb_writers_acquired(inode->i_sb, SB_FREEZE_WRITE); sb_end_write(inode->i_sb); } /* * This is used for regular files where some users -- especially the * currently executed binary in a process, previously handled via * VM_DENYWRITE -- cannot handle concurrent write (and maybe mmap * read-write shared) accesses. * * get_write_access() gets write permission for a file. * put_write_access() releases this write permission. * deny_write_access() denies write access to a file. * allow_write_access() re-enables write access to a file. * * The i_writecount field of an inode can have the following values: * 0: no write access, no denied write access * < 0: (-i_writecount) users that denied write access to the file. * > 0: (i_writecount) users that have write access to the file. * * Normally we operate on that counter with atomic_{inc,dec} and it's safe * except for the cases where we don't hold i_writecount yet. Then we need to * use {get,deny}_write_access() - these functions check the sign and refuse * to do the change if sign is wrong. */ static inline int get_write_access(struct inode *inode) { return atomic_inc_unless_negative(&inode->i_writecount) ? 0 : -ETXTBSY; } static inline int deny_write_access(struct file *file) { struct inode *inode = file_inode(file); return atomic_dec_unless_positive(&inode->i_writecount) ? 0 : -ETXTBSY; } static inline void put_write_access(struct inode * inode) { atomic_dec(&inode->i_writecount); } static inline void allow_write_access(struct file *file) { if (file) atomic_inc(&file_inode(file)->i_writecount); } /* * Do not prevent write to executable file when watched by pre-content events. * * Note that FMODE_FSNOTIFY_HSM mode is set depending on pre-content watches at * the time of file open and remains constant for entire lifetime of the file, * so if pre-content watches are added post execution or removed before the end * of the execution, it will not cause i_writecount reference leak. */ static inline int exe_file_deny_write_access(struct file *exe_file) { if (unlikely(FMODE_FSNOTIFY_HSM(exe_file->f_mode))) return 0; return deny_write_access(exe_file); } static inline void exe_file_allow_write_access(struct file *exe_file) { if (unlikely(!exe_file || FMODE_FSNOTIFY_HSM(exe_file->f_mode))) return; allow_write_access(exe_file); } static inline void file_set_fsnotify_mode(struct file *file, fmode_t mode) { file->f_mode &= ~FMODE_FSNOTIFY_MASK; file->f_mode |= mode; } static inline bool inode_is_open_for_write(const struct inode *inode) { return atomic_read(&inode->i_writecount) > 0; } #if defined(CONFIG_IMA) || defined(CONFIG_FILE_LOCKING) static inline void i_readcount_dec(struct inode *inode) { BUG_ON(atomic_dec_return(&inode->i_readcount) < 0); } static inline void i_readcount_inc(struct inode *inode) { atomic_inc(&inode->i_readcount); } #else static inline void i_readcount_dec(struct inode *inode) { return; } static inline void i_readcount_inc(struct inode *inode) { return; } #endif extern int do_pipe_flags(int *, int); extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *); ssize_t __kernel_read(struct file *file, void *buf, size_t count, loff_t *pos); extern ssize_t kernel_write(struct file *, const void *, size_t, loff_t *); extern ssize_t __kernel_write(struct file *, const void *, size_t, loff_t *); extern struct file * open_exec(const char *); /* fs/dcache.c -- generic fs support functions */ extern bool is_subdir(struct dentry *, struct dentry *); extern bool path_is_under(const struct path *, const struct path *); extern char *file_path(struct file *, char *, int); /** * is_dot_dotdot - returns true only if @name is "." or ".." * @name: file name to check * @len: length of file name, in bytes */ static inline bool is_dot_dotdot(const char *name, size_t len) { return len && unlikely(name[0] == '.') && (len == 1 || (len == 2 && name[1] == '.')); } #include <linux/err.h> /* needed for stackable file system support */ extern loff_t default_llseek(struct file *file, loff_t offset, int whence); extern loff_t vfs_llseek(struct file *file, loff_t offset, int whence); extern int inode_init_always_gfp(struct super_block *, struct inode *, gfp_t); static inline int inode_init_always(struct super_block *sb, struct inode *inode) { return inode_init_always_gfp(sb, inode, GFP_NOFS); } extern void inode_init_once(struct inode *); extern void address_space_init_once(struct address_space *mapping); extern struct inode * igrab(struct inode *); extern ino_t iunique(struct super_block *, ino_t); extern int inode_needs_sync(struct inode *inode); extern int generic_delete_inode(struct inode *inode); static inline int generic_drop_inode(struct inode *inode) { return !inode->i_nlink || inode_unhashed(inode); } extern void d_mark_dontcache(struct inode *inode); extern struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval, int (*test)(struct inode *, void *), void *data); extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, int (*test)(struct inode *, void *), void *data); extern struct inode *ilookup(struct super_block *sb, unsigned long ino); extern struct inode *inode_insert5(struct inode *inode, unsigned long hashval, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *data); struct inode *iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); struct inode *iget5_locked_rcu(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); extern struct inode * iget_locked(struct super_block *, unsigned long); extern struct inode *find_inode_nowait(struct super_block *, unsigned long, int (*match)(struct inode *, unsigned long, void *), void *data); extern struct inode *find_inode_rcu(struct super_block *, unsigned long, int (*)(struct inode *, void *), void *); extern struct inode *find_inode_by_ino_rcu(struct super_block *, unsigned long); extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *); extern int insert_inode_locked(struct inode *); #ifdef CONFIG_DEBUG_LOCK_ALLOC extern void lockdep_annotate_inode_mutex_key(struct inode *inode); #else static inline void lockdep_annotate_inode_mutex_key(struct inode *inode) { }; #endif extern void unlock_new_inode(struct inode *); extern void discard_new_inode(struct inode *); extern unsigned int get_next_ino(void); extern void evict_inodes(struct super_block *sb); void dump_mapping(const struct address_space *); /* * Userspace may rely on the inode number being non-zero. For example, glibc * simply ignores files with zero i_ino in unlink() and other places. * * As an additional complication, if userspace was compiled with * _FILE_OFFSET_BITS=32 on a 64-bit kernel we'll only end up reading out the * lower 32 bits, so we need to check that those aren't zero explicitly. With * _FILE_OFFSET_BITS=64, this may cause some harmless false-negatives, but * better safe than sorry. */ static inline bool is_zero_ino(ino_t ino) { return (u32)ino == 0; } /* * inode->i_lock must be held */ static inline void __iget(struct inode *inode) { atomic_inc(&inode->i_count); } extern void iget_failed(struct inode *); extern void clear_inode(struct inode *); extern void __destroy_inode(struct inode *); extern struct inode *new_inode_pseudo(struct super_block *sb); extern struct inode *new_inode(struct super_block *sb); extern void free_inode_nonrcu(struct inode *inode); extern int setattr_should_drop_suidgid(struct mnt_idmap *, struct inode *); extern int file_remove_privs_flags(struct file *file, unsigned int flags); extern int file_remove_privs(struct file *); int setattr_should_drop_sgid(struct mnt_idmap *idmap, const struct inode *inode); /* * This must be used for allocating filesystems specific inodes to set * up the inode reclaim context correctly. */ #define alloc_inode_sb(_sb, _cache, _gfp) kmem_cache_alloc_lru(_cache, &_sb->s_inode_lru, _gfp) extern void __insert_inode_hash(struct inode *, unsigned long hashval); static inline void insert_inode_hash(struct inode *inode) { __insert_inode_hash(inode, inode->i_ino); } extern void __remove_inode_hash(struct inode *); static inline void remove_inode_hash(struct inode *inode) { if (!inode_unhashed(inode) && !hlist_fake(&inode->i_hash)) __remove_inode_hash(inode); } extern void inode_sb_list_add(struct inode *inode); extern void inode_add_lru(struct inode *inode); extern int sb_set_blocksize(struct super_block *, int); extern int sb_min_blocksize(struct super_block *, int); extern int generic_file_mmap(struct file *, struct vm_area_struct *); extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *); extern ssize_t generic_write_checks(struct kiocb *, struct iov_iter *); int generic_write_checks_count(struct kiocb *iocb, loff_t *count); extern int generic_write_check_limits(struct file *file, loff_t pos, loff_t *count); extern int generic_file_rw_checks(struct file *file_in, struct file *file_out); ssize_t filemap_read(struct kiocb *iocb, struct iov_iter *to, ssize_t already_read); extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *); extern ssize_t __generic_file_write_iter(struct kiocb *, struct iov_iter *); extern ssize_t generic_file_write_iter(struct kiocb *, struct iov_iter *); extern ssize_t generic_file_direct_write(struct kiocb *, struct iov_iter *); ssize_t generic_perform_write(struct kiocb *, struct iov_iter *); ssize_t direct_write_fallback(struct kiocb *iocb, struct iov_iter *iter, ssize_t direct_written, ssize_t buffered_written); ssize_t vfs_iter_read(struct file *file, struct iov_iter *iter, loff_t *ppos, rwf_t flags); ssize_t vfs_iter_write(struct file *file, struct iov_iter *iter, loff_t *ppos, rwf_t flags); ssize_t vfs_iocb_iter_read(struct file *file, struct kiocb *iocb, struct iov_iter *iter); ssize_t vfs_iocb_iter_write(struct file *file, struct kiocb *iocb, struct iov_iter *iter); /* fs/splice.c */ ssize_t filemap_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags); ssize_t copy_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags); extern ssize_t iter_file_splice_write(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int); extern void file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping); extern loff_t noop_llseek(struct file *file, loff_t offset, int whence); extern loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize); extern loff_t generic_file_llseek(struct file *file, loff_t offset, int whence); extern loff_t generic_file_llseek_size(struct file *file, loff_t offset, int whence, loff_t maxsize, loff_t eof); loff_t generic_llseek_cookie(struct file *file, loff_t offset, int whence, u64 *cookie); extern loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size); extern loff_t no_seek_end_llseek_size(struct file *, loff_t, int, loff_t); extern loff_t no_seek_end_llseek(struct file *, loff_t, int); int rw_verify_area(int, struct file *, const loff_t *, size_t); extern int generic_file_open(struct inode * inode, struct file * filp); extern int nonseekable_open(struct inode * inode, struct file * filp); extern int stream_open(struct inode * inode, struct file * filp); #ifdef CONFIG_BLOCK typedef void (dio_submit_t)(struct bio *bio, struct inode *inode, loff_t file_offset); enum { /* need locking between buffered and direct access */ DIO_LOCKING = 0x01, /* filesystem does not support filling holes */ DIO_SKIP_HOLES = 0x02, }; ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, struct block_device *bdev, struct iov_iter *iter, get_block_t get_block, dio_iodone_t end_io, int flags); static inline ssize_t blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, struct iov_iter *iter, get_block_t get_block) { return __blockdev_direct_IO(iocb, inode, inode->i_sb->s_bdev, iter, get_block, NULL, DIO_LOCKING | DIO_SKIP_HOLES); } #endif bool inode_dio_finished(const struct inode *inode); void inode_dio_wait(struct inode *inode); void inode_dio_wait_interruptible(struct inode *inode); /** * inode_dio_begin - signal start of a direct I/O requests * @inode: inode the direct I/O happens on * * This is called once we've finished processing a direct I/O request, * and is used to wake up callers waiting for direct I/O to be quiesced. */ static inline void inode_dio_begin(struct inode *inode) { atomic_inc(&inode->i_dio_count); } /** * inode_dio_end - signal finish of a direct I/O requests * @inode: inode the direct I/O happens on * * This is called once we've finished processing a direct I/O request, * and is used to wake up callers waiting for direct I/O to be quiesced. */ static inline void inode_dio_end(struct inode *inode) { if (atomic_dec_and_test(&inode->i_dio_count)) wake_up_var(&inode->i_dio_count); } extern void inode_set_flags(struct inode *inode, unsigned int flags, unsigned int mask); extern const struct file_operations generic_ro_fops; #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m)) extern int readlink_copy(char __user *, int, const char *, int); extern int page_readlink(struct dentry *, char __user *, int); extern const char *page_get_link_raw(struct dentry *, struct inode *, struct delayed_call *); extern const char *page_get_link(struct dentry *, struct inode *, struct delayed_call *); extern void page_put_link(void *); extern int page_symlink(struct inode *inode, const char *symname, int len); extern const struct inode_operations page_symlink_inode_operations; extern void kfree_link(void *); void fill_mg_cmtime(struct kstat *stat, u32 request_mask, struct inode *inode); void generic_fillattr(struct mnt_idmap *, u32, struct inode *, struct kstat *); void generic_fill_statx_attr(struct inode *inode, struct kstat *stat); void generic_fill_statx_atomic_writes(struct kstat *stat, unsigned int unit_min, unsigned int unit_max); extern int vfs_getattr_nosec(const struct path *, struct kstat *, u32, unsigned int); extern int vfs_getattr(const struct path *, struct kstat *, u32, unsigned int); void __inode_add_bytes(struct inode *inode, loff_t bytes); void inode_add_bytes(struct inode *inode, loff_t bytes); void __inode_sub_bytes(struct inode *inode, loff_t bytes); void inode_sub_bytes(struct inode *inode, loff_t bytes); static inline loff_t __inode_get_bytes(struct inode *inode) { return (((loff_t)inode->i_blocks) << 9) + inode->i_bytes; } loff_t inode_get_bytes(struct inode *inode); void inode_set_bytes(struct inode *inode, loff_t bytes); const char *simple_get_link(struct dentry *, struct inode *, struct delayed_call *); extern const struct inode_operations simple_symlink_inode_operations; extern int iterate_dir(struct file *, struct dir_context *); int vfs_fstatat(int dfd, const char __user *filename, struct kstat *stat, int flags); int vfs_fstat(int fd, struct kstat *stat); static inline int vfs_stat(const char __user *filename, struct kstat *stat) { return vfs_fstatat(AT_FDCWD, filename, stat, 0); } static inline int vfs_lstat(const char __user *name, struct kstat *stat) { return vfs_fstatat(AT_FDCWD, name, stat, AT_SYMLINK_NOFOLLOW); } extern const char *vfs_get_link(struct dentry *, struct delayed_call *); extern int vfs_readlink(struct dentry *, char __user *, int); extern struct file_system_type *get_filesystem(struct file_system_type *fs); extern void put_filesystem(struct file_system_type *fs); extern struct file_system_type *get_fs_type(const char *name); extern void drop_super(struct super_block *sb); extern void drop_super_exclusive(struct super_block *sb); extern void iterate_supers(void (*)(struct super_block *, void *), void *); extern void iterate_supers_type(struct file_system_type *, void (*)(struct super_block *, void *), void *); extern int dcache_dir_open(struct inode *, struct file *); extern int dcache_dir_close(struct inode *, struct file *); extern loff_t dcache_dir_lseek(struct file *, loff_t, int); extern int dcache_readdir(struct file *, struct dir_context *); extern int simple_setattr(struct mnt_idmap *, struct dentry *, struct iattr *); extern int simple_getattr(struct mnt_idmap *, const struct path *, struct kstat *, u32, unsigned int); extern int simple_statfs(struct dentry *, struct kstatfs *); extern int simple_open(struct inode *inode, struct file *file); extern int simple_link(struct dentry *, struct inode *, struct dentry *); extern int simple_unlink(struct inode *, struct dentry *); extern int simple_rmdir(struct inode *, struct dentry *); void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry); extern int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry); extern int simple_rename(struct mnt_idmap *, struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int); extern void simple_recursive_removal(struct dentry *, void (*callback)(struct dentry *)); extern int noop_fsync(struct file *, loff_t, loff_t, int); extern ssize_t noop_direct_IO(struct kiocb *iocb, struct iov_iter *iter); extern int simple_empty(struct dentry *); extern int simple_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, struct folio **foliop, void **fsdata); extern const struct address_space_operations ram_aops; extern int always_delete_dentry(const struct dentry *); extern struct inode *alloc_anon_inode(struct super_block *); struct inode *anon_inode_make_secure_inode(struct super_block *sb, const char *name, const struct inode *context_inode); extern int simple_nosetlease(struct file *, int, struct file_lease **, void **); extern const struct dentry_operations simple_dentry_operations; extern struct dentry *simple_lookup(struct inode *, struct dentry *, unsigned int flags); extern ssize_t generic_read_dir(struct file *, char __user *, size_t, loff_t *); extern const struct file_operations simple_dir_operations; extern const struct inode_operations simple_dir_inode_operations; extern void make_empty_dir_inode(struct inode *inode); extern bool is_empty_dir_inode(struct inode *inode); struct tree_descr { const char *name; const struct file_operations *ops; int mode; }; struct dentry *d_alloc_name(struct dentry *, const char *); extern int simple_fill_super(struct super_block *, unsigned long, const struct tree_descr *); extern int simple_pin_fs(struct file_system_type *, struct vfsmount **mount, int *count); extern void simple_release_fs(struct vfsmount **mount, int *count); extern ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, const void *from, size_t available); extern ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, const void __user *from, size_t count); struct offset_ctx { struct maple_tree mt; unsigned long next_offset; }; void simple_offset_init(struct offset_ctx *octx); int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry); void simple_offset_remove(struct offset_ctx *octx, struct dentry *dentry); int simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry); int simple_offset_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry); void simple_offset_destroy(struct offset_ctx *octx); extern const struct file_operations simple_offset_dir_operations; extern int __generic_file_fsync(struct file *, loff_t, loff_t, int); extern int generic_file_fsync(struct file *, loff_t, loff_t, int); extern int generic_check_addressable(unsigned, u64); extern void generic_set_sb_d_ops(struct super_block *sb); extern int generic_ci_match(const struct inode *parent, const struct qstr *name, const struct qstr *folded_name, const u8 *de_name, u32 de_name_len); #if IS_ENABLED(CONFIG_UNICODE) int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str); int generic_ci_d_compare(const struct dentry *dentry, unsigned int len, const char *str, const struct qstr *name); /** * generic_ci_validate_strict_name - Check if a given name is suitable * for a directory * * This functions checks if the proposed filename is valid for the * parent directory. That means that only valid UTF-8 filenames will be * accepted for casefold directories from filesystems created with the * strict encoding flag. That also means that any name will be * accepted for directories that doesn't have casefold enabled, or * aren't being strict with the encoding. * * @dir: inode of the directory where the new file will be created * @name: name of the new file * * Return: * * True: if the filename is suitable for this directory. It can be * true if a given name is not suitable for a strict encoding * directory, but the directory being used isn't strict * * False if the filename isn't suitable for this directory. This only * happens when a directory is casefolded and the filesystem is strict * about its encoding. */ static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name) { if (!IS_CASEFOLDED(dir) || !sb_has_strict_encoding(dir->i_sb)) return true; /* * A casefold dir must have a encoding set, unless the filesystem * is corrupted */ if (WARN_ON_ONCE(!dir->i_sb->s_encoding)) return true; return !utf8_validate(dir->i_sb->s_encoding, name); } #else static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name) { return true; } #endif static inline bool sb_has_encoding(const struct super_block *sb) { #if IS_ENABLED(CONFIG_UNICODE) return !!sb->s_encoding; #else return false; #endif } int may_setattr(struct mnt_idmap *idmap, struct inode *inode, unsigned int ia_valid); int setattr_prepare(struct mnt_idmap *, struct dentry *, struct iattr *); extern int inode_newsize_ok(const struct inode *, loff_t offset); void setattr_copy(struct mnt_idmap *, struct inode *inode, const struct iattr *attr); extern int file_update_time(struct file *file); static inline bool vma_is_dax(const struct vm_area_struct *vma) { return vma->vm_file && IS_DAX(vma->vm_file->f_mapping->host); } static inline bool vma_is_fsdax(struct vm_area_struct *vma) { struct inode *inode; if (!IS_ENABLED(CONFIG_FS_DAX) || !vma->vm_file) return false; if (!vma_is_dax(vma)) return false; inode = file_inode(vma->vm_file); if (S_ISCHR(inode->i_mode)) return false; /* device-dax */ return true; } static inline int iocb_flags(struct file *file) { int res = 0; if (file->f_flags & O_APPEND) res |= IOCB_APPEND; if (file->f_flags & O_DIRECT) res |= IOCB_DIRECT; if (file->f_flags & O_DSYNC) res |= IOCB_DSYNC; if (file->f_flags & __O_SYNC) res |= IOCB_SYNC; return res; } static inline int kiocb_set_rw_flags(struct kiocb *ki, rwf_t flags, int rw_type) { int kiocb_flags = 0; /* make sure there's no overlap between RWF and private IOCB flags */ BUILD_BUG_ON((__force int) RWF_SUPPORTED & IOCB_EVENTFD); if (!flags) return 0; if (unlikely(flags & ~RWF_SUPPORTED)) return -EOPNOTSUPP; if (unlikely((flags & RWF_APPEND) && (flags & RWF_NOAPPEND))) return -EINVAL; if (flags & RWF_NOWAIT) { if (!(ki->ki_filp->f_mode & FMODE_NOWAIT)) return -EOPNOTSUPP; } if (flags & RWF_ATOMIC) { if (rw_type != WRITE) return -EOPNOTSUPP; if (!(ki->ki_filp->f_mode & FMODE_CAN_ATOMIC_WRITE)) return -EOPNOTSUPP; } if (flags & RWF_DONTCACHE) { /* file system must support it */ if (!(ki->ki_filp->f_op->fop_flags & FOP_DONTCACHE)) return -EOPNOTSUPP; /* DAX mappings not supported */ if (IS_DAX(ki->ki_filp->f_mapping->host)) return -EOPNOTSUPP; } kiocb_flags |= (__force int) (flags & RWF_SUPPORTED); if (flags & RWF_SYNC) kiocb_flags |= IOCB_DSYNC; if ((flags & RWF_NOAPPEND) && (ki->ki_flags & IOCB_APPEND)) { if (IS_APPEND(file_inode(ki->ki_filp))) return -EPERM; ki->ki_flags &= ~IOCB_APPEND; } ki->ki_flags |= kiocb_flags; return 0; } /* Transaction based IO helpers */ /* * An argresp is stored in an allocated page and holds the * size of the argument or response, along with its content */ struct simple_transaction_argresp { ssize_t size; char data[]; }; #define SIMPLE_TRANSACTION_LIMIT (PAGE_SIZE - sizeof(struct simple_transaction_argresp)) char *simple_transaction_get(struct file *file, const char __user *buf, size_t size); ssize_t simple_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos); int simple_transaction_release(struct inode *inode, struct file *file); void simple_transaction_set(struct file *file, size_t n); /* * simple attribute files * * These attributes behave similar to those in sysfs: * * Writing to an attribute immediately sets a value, an open file can be * written to multiple times. * * Reading from an attribute creates a buffer from the value that might get * read with multiple read calls. When the attribute has been read * completely, no further read calls are possible until the file is opened * again. * * All attributes contain a text representation of a numeric value * that are accessed with the get() and set() functions. */ #define DEFINE_SIMPLE_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, __is_signed) \ static int __fops ## _open(struct inode *inode, struct file *file) \ { \ __simple_attr_check_format(__fmt, 0ull); \ return simple_attr_open(inode, file, __get, __set, __fmt); \ } \ static const struct file_operations __fops = { \ .owner = THIS_MODULE, \ .open = __fops ## _open, \ .release = simple_attr_release, \ .read = simple_attr_read, \ .write = (__is_signed) ? simple_attr_write_signed : simple_attr_write, \ .llseek = generic_file_llseek, \ } #define DEFINE_SIMPLE_ATTRIBUTE(__fops, __get, __set, __fmt) \ DEFINE_SIMPLE_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, false) #define DEFINE_SIMPLE_ATTRIBUTE_SIGNED(__fops, __get, __set, __fmt) \ DEFINE_SIMPLE_ATTRIBUTE_XSIGNED(__fops, __get, __set, __fmt, true) static inline __printf(1, 2) void __simple_attr_check_format(const char *fmt, ...) { /* don't do anything, just let the compiler check the arguments; */ } int simple_attr_open(struct inode *inode, struct file *file, int (*get)(void *, u64 *), int (*set)(void *, u64), const char *fmt); int simple_attr_release(struct inode *inode, struct file *file); ssize_t simple_attr_read(struct file *file, char __user *buf, size_t len, loff_t *ppos); ssize_t simple_attr_write(struct file *file, const char __user *buf, size_t len, loff_t *ppos); ssize_t simple_attr_write_signed(struct file *file, const char __user *buf, size_t len, loff_t *ppos); struct ctl_table; int __init list_bdev_fs_names(char *buf, size_t size); #define __FMODE_EXEC ((__force int) FMODE_EXEC) #define ACC_MODE(x) ("\004\002\006\006"[(x)&O_ACCMODE]) #define OPEN_FMODE(flag) ((__force fmode_t)((flag + 1) & O_ACCMODE)) static inline bool is_sxid(umode_t mode) { return mode & (S_ISUID | S_ISGID); } static inline int check_sticky(struct mnt_idmap *idmap, struct inode *dir, struct inode *inode) { if (!(dir->i_mode & S_ISVTX)) return 0; return __check_sticky(idmap, dir, inode); } static inline void inode_has_no_xattr(struct inode *inode) { if (!is_sxid(inode->i_mode) && (inode->i_sb->s_flags & SB_NOSEC)) inode->i_flags |= S_NOSEC; } static inline bool is_root_inode(struct inode *inode) { return inode == inode->i_sb->s_root->d_inode; } static inline bool dir_emit(struct dir_context *ctx, const char *name, int namelen, u64 ino, unsigned type) { return ctx->actor(ctx, name, namelen, ctx->pos, ino, type); } static inline bool dir_emit_dot(struct file *file, struct dir_context *ctx) { return ctx->actor(ctx, ".", 1, ctx->pos, file->f_path.dentry->d_inode->i_ino, DT_DIR); } static inline bool dir_emit_dotdot(struct file *file, struct dir_context *ctx) { return ctx->actor(ctx, "..", 2, ctx->pos, d_parent_ino(file->f_path.dentry), DT_DIR); } static inline bool dir_emit_dots(struct file *file, struct dir_context *ctx) { if (ctx->pos == 0) { if (!dir_emit_dot(file, ctx)) return false; ctx->pos = 1; } if (ctx->pos == 1) { if (!dir_emit_dotdot(file, ctx)) return false; ctx->pos = 2; } return true; } static inline bool dir_relax(struct inode *inode) { inode_unlock(inode); inode_lock(inode); return !IS_DEADDIR(inode); } static inline bool dir_relax_shared(struct inode *inode) { inode_unlock_shared(inode); inode_lock_shared(inode); return !IS_DEADDIR(inode); } extern bool path_noexec(const struct path *path); extern void inode_nohighmem(struct inode *inode); /* mm/fadvise.c */ extern int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice); extern int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice); static inline bool vfs_empty_path(int dfd, const char __user *path) { char c; if (dfd < 0) return false; /* We now allow NULL to be used for empty path. */ if (!path) return true; if (unlikely(get_user(c, path))) return false; return !c; } int generic_atomic_write_valid(struct kiocb *iocb, struct iov_iter *iter); #endif /* _LINUX_FS_H */
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| amba | Folder | 0755 |
|
|
| atomic | Folder | 0755 |
|
|
| avf | Folder | 0755 |
|
|
| bcma | Folder | 0755 |
|
|
| bus | Folder | 0755 |
|
|
| byteorder | Folder | 0755 |
|
|
| can | Folder | 0755 |
|
|
| cdx | Folder | 0755 |
|
|
| ceph | Folder | 0755 |
|
|
| clk | Folder | 0755 |
|
|
| comedi | Folder | 0755 |
|
|
| crush | Folder | 0755 |
|
|
| decompress | Folder | 0755 |
|
|
| device | Folder | 0755 |
|
|
| dma | Folder | 0755 |
|
|
| dsa | Folder | 0755 |
|
|
| extcon | Folder | 0755 |
|
|
| firmware | Folder | 0755 |
|
|
| fpga | Folder | 0755 |
|
|
| framer | Folder | 0755 |
|
|
| fsl | Folder | 0755 |
|
|
| gpio | Folder | 0755 |
|
|
| greybus | Folder | 0755 |
|
|
| habanalabs | Folder | 0755 |
|
|
| hsi | Folder | 0755 |
|
|
| i3c | Folder | 0755 |
|
|
| iio | Folder | 0755 |
|
|
| input | Folder | 0755 |
|
|
| io_uring | Folder | 0755 |
|
|
| irqchip | Folder | 0755 |
|
|
| isdn | Folder | 0755 |
|
|
| lockd | Folder | 0755 |
|
|
| lsm | Folder | 0755 |
|
|
| mailbox | Folder | 0755 |
|
|
| mdio | Folder | 0755 |
|
|
| memory | Folder | 0755 |
|
|
| mfd | Folder | 0755 |
|
|
| misc | Folder | 0755 |
|
|
| mlx4 | Folder | 0755 |
|
|
| mlx5 | Folder | 0755 |
|
|
| mmc | Folder | 0755 |
|
|
| mtd | Folder | 0755 |
|
|
| mux | Folder | 0755 |
|
|
| net | Folder | 0755 |
|
|
| netfilter | Folder | 0755 |
|
|
| netfilter_arp | Folder | 0755 |
|
|
| netfilter_bridge | Folder | 0755 |
|
|
| netfilter_ipv4 | Folder | 0755 |
|
|
| netfilter_ipv6 | Folder | 0755 |
|
|
| pcs | Folder | 0755 |
|
|
| pds | Folder | 0755 |
|
|
| perf | Folder | 0755 |
|
|
| phy | Folder | 0755 |
|
|
| pinctrl | Folder | 0755 |
|
|
| platform_data | Folder | 0755 |
|
|
| power | Folder | 0755 |
|
|
| pse-pd | Folder | 0755 |
|
|
| pwrseq | Folder | 0755 |
|
|
| qat | Folder | 0755 |
|
|
| qed | Folder | 0755 |
|
|
| raid | Folder | 0755 |
|
|
| regulator | Folder | 0755 |
|
|
| remoteproc | Folder | 0755 |
|
|
| reset | Folder | 0755 |
|
|
| rpmsg | Folder | 0755 |
|
|
| rtc | Folder | 0755 |
|
|
| sched | Folder | 0755 |
|
|
| soc | Folder | 0755 |
|
|
| soundwire | Folder | 0755 |
|
|
| spi | Folder | 0755 |
|
|
| ssb | Folder | 0755 |
|
|
| sunrpc | Folder | 0755 |
|
|
| surface_aggregator | Folder | 0755 |
|
|
| ulpi | Folder | 0755 |
|
|
| unaligned | Folder | 0755 |
|
|
| usb | Folder | 0755 |
|
|
| 8250_pci.h | File | 1.01 KB | 0644 |
|
| acct.h | File | 2.45 KB | 0644 |
|
| acpi.h | File | 44.88 KB | 0644 |
|
| acpi_amd_wbrf.h | File | 2.24 KB | 0644 |
|
| acpi_dma.h | File | 2.95 KB | 0644 |
|
| acpi_iort.h | File | 2.64 KB | 0644 |
|
| acpi_mdio.h | File | 819 B | 0644 |
|
| acpi_pmtmr.h | File | 1.02 KB | 0644 |
|
| acpi_viot.h | File | 478 B | 0644 |
|
| adb.h | File | 1.79 KB | 0644 |
|
| adfs_fs.h | File | 574 B | 0644 |
|
| adreno-smmu-priv.h | File | 3.15 KB | 0644 |
|
| adxl.h | File | 310 B | 0644 |
|
| aer.h | File | 1.49 KB | 0644 |
|
| agp_backend.h | File | 3.45 KB | 0644 |
|
| agpgart.h | File | 3.79 KB | 0644 |
|
| ahci-remap.h | File | 607 B | 0644 |
|
| ahci_platform.h | File | 1.81 KB | 0644 |
|
| aio.h | File | 570 B | 0644 |
|
| alarmtimer.h | File | 1.83 KB | 0644 |
|
| alcor_pci.h | File | 8.74 KB | 0644 |
|
| align.h | File | 552 B | 0644 |
|
| alloc_tag.h | File | 6.4 KB | 0644 |
|
| altera_jtaguart.h | File | 379 B | 0644 |
|
| altera_uart.h | File | 397 B | 0644 |
|
| amd-iommu.h | File | 2.12 KB | 0644 |
|
| amd-pmf-io.h | File | 1.58 KB | 0644 |
|
| anon_inodes.h | File | 1021 B | 0644 |
|
| aperture.h | File | 1.61 KB | 0644 |
|
| apm-emulation.h | File | 1.56 KB | 0644 |
|
| apm_bios.h | File | 2.25 KB | 0644 |
|
| apple-gmux.h | File | 4.63 KB | 0644 |
|
| arch_topology.h | File | 2.93 KB | 0644 |
|
| args.h | File | 1021 B | 0644 |
|
| arm-cci.h | File | 1.39 KB | 0644 |
|
| arm-smccc.h | File | 20.7 KB | 0644 |
|
| arm_ffa.h | File | 14.71 KB | 0644 |
|
| arm_sdei.h | File | 2.67 KB | 0644 |
|
| armada-37xx-rwtm-mailbox.h | File | 431 B | 0644 |
|
| array_size.h | File | 332 B | 0644 |
|
| ascii85.h | File | 555 B | 0644 |
|
| asn1.h | File | 1.79 KB | 0644 |
|
| asn1_ber_bytecode.h | File | 2.52 KB | 0644 |
|
| asn1_decoder.h | File | 493 B | 0644 |
|
| asn1_encoder.h | File | 983 B | 0644 |
|
| assoc_array.h | File | 2.88 KB | 0644 |
|
| assoc_array_priv.h | File | 5.3 KB | 0644 |
|
| async.h | File | 4.36 KB | 0644 |
|
| async_tx.h | File | 6.7 KB | 0644 |
|
| ata.h | File | 30.39 KB | 0644 |
|
| ata_platform.h | File | 755 B | 0644 |
|
| atalk.h | File | 4.45 KB | 0644 |
|
| atm.h | File | 287 B | 0644 |
|
| atm_tcp.h | File | 542 B | 0644 |
|
| atmdev.h | File | 10.17 KB | 0644 |
|
| atmel-isc-media.h | File | 2.07 KB | 0644 |
|
| atmel-ssc.h | File | 9.74 KB | 0644 |
|
| atmel_pdc.h | File | 1.26 KB | 0644 |
|
| atomic.h | File | 2.58 KB | 0644 |
|
| attribute_container.h | File | 2.47 KB | 0644 |
|
| audit.h | File | 20.48 KB | 0644 |
|
| audit_arch.h | File | 559 B | 0644 |
|
| auto_dev-ioctl.h | File | 296 B | 0644 |
|
| auto_fs.h | File | 278 B | 0644 |
|
| auxiliary_bus.h | File | 10.33 KB | 0644 |
|
| auxvec.h | File | 304 B | 0644 |
|
| average.h | File | 2.42 KB | 0644 |
|
| backing-dev-defs.h | File | 8.4 KB | 0644 |
|
| backing-dev.h | File | 10.41 KB | 0644 |
|
| backing-file.h | File | 1.51 KB | 0644 |
|
| backlight.h | File | 11.9 KB | 0644 |
|
| badblocks.h | File | 2.66 KB | 0644 |
|
| balloon_compaction.h | File | 6 KB | 0644 |
|
| base64.h | File | 370 B | 0644 |
|
| bcd.h | File | 683 B | 0644 |
|
| bch.h | File | 2.1 KB | 0644 |
|
| bcm47xx_nvram.h | File | 1.2 KB | 0644 |
|
| bcm47xx_sprom.h | File | 616 B | 0644 |
|
| bcm47xx_wdt.h | File | 555 B | 0644 |
|
| bcm963xx_nvram.h | File | 2.96 KB | 0644 |
|
| bcm963xx_tag.h | File | 3.6 KB | 0644 |
|
| binfmts.h | File | 4.63 KB | 0644 |
|
| bio-integrity.h | File | 4.16 KB | 0644 |
|
| bio.h | File | 18.01 KB | 0644 |
|
| bit_spinlock.h | File | 2.3 KB | 0644 |
|
| bitfield.h | File | 6.39 KB | 0644 |
|
| bitmap-str.h | File | 842 B | 0644 |
|
| bitmap.h | File | 29.11 KB | 0644 |
|
| bitops.h | File | 10.14 KB | 0644 |
|
| bitrev.h | File | 2.53 KB | 0644 |
|
| bits.h | File | 1.57 KB | 0644 |
|
| blk-cgroup.h | File | 1.53 KB | 0644 |
|
| blk-crypto-profile.h | File | 5.3 KB | 0644 |
|
| blk-crypto.h | File | 4.13 KB | 0644 |
|
| blk-integrity.h | File | 3.99 KB | 0644 |
|
| blk-mq.h | File | 33.72 KB | 0644 |
|
| blk-pm.h | File | 647 B | 0644 |
|
| blk_types.h | File | 15.31 KB | 0644 |
|
| blkdev.h | File | 49.82 KB | 0644 |
|
| blkpg.h | File | 436 B | 0644 |
|
| blktrace_api.h | File | 3.55 KB | 0644 |
|
| blockgroup_lock.h | File | 810 B | 0644 |
|
| bma150.h | File | 1.25 KB | 0644 |
|
| bootconfig.h | File | 9.27 KB | 0644 |
|
| bootmem_info.h | File | 2.04 KB | 0644 |
|
| bottom_half.h | File | 1013 B | 0644 |
|
| bpf-cgroup-defs.h | File | 2.07 KB | 0644 |
|
| bpf-cgroup.h | File | 18.4 KB | 0644 |
|
| bpf-netns.h | File | 1.41 KB | 0644 |
|
| bpf.h | File | 110.52 KB | 0644 |
|
| bpf_crypto.h | File | 865 B | 0644 |
|
| bpf_lirc.h | File | 698 B | 0644 |
|
| bpf_local_storage.h | File | 6.61 KB | 0644 |
|
| bpf_lsm.h | File | 2.01 KB | 0644 |
|
| bpf_mem_alloc.h | File | 2.05 KB | 0644 |
|
| bpf_mprog.h | File | 9.29 KB | 0644 |
|
| bpf_trace.h | File | 166 B | 0644 |
|
| bpf_types.h | File | 6.1 KB | 0644 |
|
| bpf_verifier.h | File | 33.06 KB | 0644 |
|
| bpfptr.h | File | 2.09 KB | 0644 |
|
| brcmphy.h | File | 21.77 KB | 0644 |
|
| bsearch.h | File | 624 B | 0644 |
|
| bsg-lib.h | File | 1.71 KB | 0644 |
|
| bsg.h | File | 499 B | 0644 |
|
| btf.h | File | 20.05 KB | 0644 |
|
| btf_ids.h | File | 8.18 KB | 0644 |
|
| btree-128.h | File | 2.67 KB | 0644 |
|
| btree-type.h | File | 3.9 KB | 0644 |
|
| btree.h | File | 6.84 KB | 0644 |
|
| btrfs.h | File | 145 B | 0644 |
|
| buffer_head.h | File | 17.37 KB | 0644 |
|
| bug.h | File | 2.33 KB | 0644 |
|
| build-salt.h | File | 375 B | 0644 |
|
| build_bug.h | File | 2.99 KB | 0644 |
|
| buildid.h | File | 671 B | 0644 |
|
| bvec.h | File | 7.54 KB | 0644 |
|
| c2port.h | File | 1.35 KB | 0644 |
|
| cache.h | File | 5.51 KB | 0644 |
|
| cacheflush.h | File | 675 B | 0644 |
|
| cacheinfo.h | File | 4.92 KB | 0644 |
|
| call_once.h | File | 1.67 KB | 0644 |
|
| capability.h | File | 6.27 KB | 0644 |
|
| cb710.h | File | 5.36 KB | 0644 |
|
| cc_platform.h | File | 3.42 KB | 0644 |
|
| cciss_ioctl.h | File | 1.03 KB | 0644 |
|
| ccp.h | File | 18.14 KB | 0644 |
|
| cdev.h | File | 845 B | 0644 |
|
| cdrom.h | File | 8.92 KB | 0644 |
|
| cfag12864b.h | File | 1.07 KB | 0644 |
|
| cfi.h | File | 1.23 KB | 0644 |
|
| cfi_types.h | File | 1.06 KB | 0644 |
|
| cgroup-defs.h | File | 26.77 KB | 0644 |
|
| cgroup.h | File | 26.33 KB | 0644 |
|
| cgroup_api.h | File | 26 B | 0644 |
|
| cgroup_dmem.h | File | 1.91 KB | 0644 |
|
| cgroup_rdma.h | File | 1.18 KB | 0644 |
|
| cgroup_refcnt.h | File | 2.59 KB | 0644 |
|
| cgroup_subsys.h | File | 1.28 KB | 0644 |
|
| circ_buf.h | File | 1.09 KB | 0644 |
|
| cleanup.h | File | 13.45 KB | 0644 |
|
| clk-provider.h | File | 65.77 KB | 0644 |
|
| clk.h | File | 36.18 KB | 0644 |
|
| clkdev.h | File | 1.2 KB | 0644 |
|
| clockchips.h | File | 7.29 KB | 0644 |
|
| clocksource.h | File | 11.01 KB | 0644 |
|
| clocksource_ids.h | File | 333 B | 0644 |
|
| closure.h | File | 14.22 KB | 0644 |
|
| cma.h | File | 2.26 KB | 0644 |
|
| cmpxchg-emu.h | File | 435 B | 0644 |
|
| cn_proc.h | File | 1.85 KB | 0644 |
|
| cnt32_to_63.h | File | 3.46 KB | 0644 |
|
| coda.h | File | 2.16 KB | 0644 |
|
| codetag.h | File | 3.4 KB | 0644 |
|
| compaction.h | File | 4.5 KB | 0644 |
|
| compat.h | File | 32.32 KB | 0644 |
|
| compiler-clang.h | File | 4.13 KB | 0644 |
|
| compiler-gcc.h | File | 3.92 KB | 0644 |
|
| compiler-version.h | File | 517 B | 0644 |
|
| compiler.h | File | 12.26 KB | 0644 |
|
| compiler_attributes.h | File | 15.91 KB | 0644 |
|
| compiler_types.h | File | 18.79 KB | 0644 |
|
| completion.h | File | 4.14 KB | 0644 |
|
| component.h | File | 4.35 KB | 0644 |
|
| configfs.h | File | 8.54 KB | 0644 |
|
| connector.h | File | 4.01 KB | 0644 |
|
| console.h | File | 24.18 KB | 0644 |
|
| console_struct.h | File | 6.98 KB | 0644 |
|
| consolemap.h | File | 1.25 KB | 0644 |
|
| const.h | File | 100 B | 0644 |
|
| container.h | File | 616 B | 0644 |
|
| container_of.h | File | 1.3 KB | 0644 |
|
| context_tracking.h | File | 4.4 KB | 0644 |
|
| context_tracking_irq.h | File | 633 B | 0644 |
|
| context_tracking_state.h | File | 3.8 KB | 0644 |
|
| cookie.h | File | 1.22 KB | 0644 |
|
| cordic.h | File | 2.08 KB | 0644 |
|
| coredump.h | File | 2.17 KB | 0644 |
|
| coresight-pmu.h | File | 2.32 KB | 0644 |
|
| coresight-stm.h | File | 152 B | 0644 |
|
| coresight.h | File | 22.68 KB | 0644 |
|
| count_zeros.h | File | 1.42 KB | 0644 |
|
| counter.h | File | 21.48 KB | 0644 |
|
| cper.h | File | 17.59 KB | 0644 |
|
| cpu.h | File | 6.67 KB | 0644 |
|
| cpu_cooling.h | File | 1.83 KB | 0644 |
|
| cpu_pm.h | File | 2.38 KB | 0644 |
|
| cpu_rmap.h | File | 1.7 KB | 0644 |
|
| cpu_smt.h | File | 1.12 KB | 0644 |
|
| cpufeature.h | File | 1.71 KB | 0644 |
|
| cpufreq.h | File | 36.37 KB | 0644 |
|
| cpuhotplug.h | File | 16.95 KB | 0644 |
|
| cpuhplock.h | File | 1.52 KB | 0644 |
|
| cpuidle.h | File | 11.42 KB | 0644 |
|
| cpuidle_haltpoll.h | File | 312 B | 0644 |
|
| cpumask.h | File | 37.26 KB | 0644 |
|
| cpumask_api.h | File | 27 B | 0644 |
|
| cpumask_types.h | File | 2.18 KB | 0644 |
|
| cpuset.h | File | 8.01 KB | 0644 |
|
| crash_core.h | File | 2.65 KB | 0644 |
|
| crash_dump.h | File | 6.29 KB | 0644 |
|
| crash_reserve.h | File | 1.33 KB | 0644 |
|
| crc-ccitt.h | File | 369 B | 0644 |
|
| crc-itu-t.h | File | 530 B | 0644 |
|
| crc-t10dif.h | File | 759 B | 0644 |
|
| crc16.h | File | 540 B | 0644 |
|
| crc32.h | File | 4.23 KB | 0644 |
|
| crc32c.h | File | 346 B | 0644 |
|
| crc32poly.h | File | 610 B | 0644 |
|
| crc4.h | File | 192 B | 0644 |
|
| crc64.h | File | 539 B | 0644 |
|
| crc7.h | File | 316 B | 0644 |
|
| crc8.h | File | 3.66 KB | 0644 |
|
| cred.h | File | 11.95 KB | 0644 |
|
| crypto.h | File | 19.01 KB | 0644 |
|
| cs5535.h | File | 6.13 KB | 0644 |
|
| ctype.h | File | 1.87 KB | 0644 |
|
| cuda.h | File | 620 B | 0644 |
|
| damon.h | File | 33.47 KB | 0644 |
|
| dasd_mod.h | File | 204 B | 0644 |
|
| davinci_emac.h | File | 1.05 KB | 0644 |
|
| dax.h | File | 8.75 KB | 0644 |
|
| dca.h | File | 1.88 KB | 0644 |
|
| dcache.h | File | 18.81 KB | 0644 |
|
| dccp.h | File | 10.74 KB | 0644 |
|
| debug_locks.h | File | 1.57 KB | 0644 |
|
| debugfs.h | File | 15.87 KB | 0644 |
|
| debugobjects.h | File | 4.09 KB | 0644 |
|
| delay.h | File | 4.18 KB | 0644 |
|
| delayacct.h | File | 7.08 KB | 0644 |
|
| delayed_call.h | File | 709 B | 0644 |
|
| dev_printk.h | File | 9.74 KB | 0644 |
|
| devcoredump.h | File | 3.53 KB | 0644 |
|
| devfreq-event.h | File | 5.95 KB | 0644 |
|
| devfreq.h | File | 14.52 KB | 0644 |
|
| devfreq_cooling.h | File | 2.7 KB | 0644 |
|
| device-mapper.h | File | 21.11 KB | 0644 |
|
| device.h | File | 43.19 KB | 0644 |
|
| device_cgroup.h | File | 1.57 KB | 0644 |
|
| devm-helpers.h | File | 2.67 KB | 0644 |
|
| devpts_fs.h | File | 1.13 KB | 0644 |
|
| dfl.h | File | 2.72 KB | 0644 |
|
| digsig.h | File | 1.18 KB | 0644 |
|
| dim.h | File | 12.69 KB | 0644 |
|
| dio.h | File | 10.77 KB | 0644 |
|
| dirent.h | File | 215 B | 0644 |
|
| dlm.h | File | 6.44 KB | 0644 |
|
| dlm_plock.h | File | 642 B | 0644 |
|
| dm-bufio.h | File | 5.16 KB | 0644 |
|
| dm-dirty-log.h | File | 4 KB | 0644 |
|
| dm-io.h | File | 2.03 KB | 0644 |
|
| dm-kcopyd.h | File | 3.03 KB | 0644 |
|
| dm-region-hash.h | File | 3.16 KB | 0644 |
|
| dm-verity-loadpin.h | File | 617 B | 0644 |
|
| dm9000.h | File | 987 B | 0644 |
|
| dma-buf.h | File | 21.21 KB | 0644 |
|
| dma-direct.h | File | 4.16 KB | 0644 |
|
| dma-direction.h | File | 407 B | 0644 |
|
| dma-fence-array.h | File | 2.86 KB | 0644 |
|
| dma-fence-chain.h | File | 3.66 KB | 0644 |
|
| dma-fence-unwrap.h | File | 2.24 KB | 0644 |
|
| dma-fence.h | File | 22.94 KB | 0644 |
|
| dma-heap.h | File | 1.13 KB | 0644 |
|
| dma-map-ops.h | File | 15.89 KB | 0644 |
|
| dma-mapping.h | File | 21.19 KB | 0644 |
|
| dma-resv.h | File | 16.94 KB | 0644 |
|
| dmaengine.h | File | 55.21 KB | 0644 |
|
| dmapool.h | File | 1.79 KB | 0644 |
|
| dmar.h | File | 8.06 KB | 0644 |
|
| dmi.h | File | 4.27 KB | 0644 |
|
| dnotify.h | File | 1012 B | 0644 |
|
| dns_resolver.h | File | 1.36 KB | 0644 |
|
| dpll.h | File | 6.78 KB | 0644 |
|
| dqblk_qtree.h | File | 2.19 KB | 0644 |
|
| dqblk_v1.h | File | 327 B | 0644 |
|
| dqblk_v2.h | File | 406 B | 0644 |
|
| drbd.h | File | 9.92 KB | 0644 |
|
| drbd_config.h | File | 285 B | 0644 |
|
| drbd_genl.h | File | 21.49 KB | 0644 |
|
| drbd_genl_api.h | File | 1.76 KB | 0644 |
|
| drbd_limits.h | File | 7.92 KB | 0644 |
|
| ds2782_battery.h | File | 158 B | 0644 |
|
| dtlk.h | File | 3.5 KB | 0644 |
|
| dtpm.h | File | 1.46 KB | 0644 |
|
| dw_apb_timer.h | File | 1.32 KB | 0644 |
|
| dynamic_debug.h | File | 10.96 KB | 0644 |
|
| dynamic_queue_limits.h | File | 5.43 KB | 0644 |
|
| earlycpio.h | File | 359 B | 0644 |
|
| ecryptfs.h | File | 3.82 KB | 0644 |
|
| edac.h | File | 19.44 KB | 0644 |
|
| edd.h | File | 1.05 KB | 0644 |
|
| eeprom_93cx6.h | File | 2.64 KB | 0644 |
|
| efi-bgrt.h | File | 644 B | 0644 |
|
| efi.h | File | 44.59 KB | 0644 |
|
| efi_embedded_fw.h | File | 1.04 KB | 0644 |
|
| efs_vh.h | File | 1.55 KB | 0644 |
|
| eisa.h | File | 2.97 KB | 0644 |
|
| elf-fdpic.h | File | 2.39 KB | 0644 |
|
| elf-randomize.h | File | 583 B | 0644 |
|
| elf.h | File | 2.97 KB | 0644 |
|
| elfcore-compat.h | File | 1.43 KB | 0644 |
|
| elfcore.h | File | 3.93 KB | 0644 |
|
| elfnote-lto.h | File | 314 B | 0644 |
|
| elfnote.h | File | 3.54 KB | 0644 |
|
| enclosure.h | File | 4.02 KB | 0644 |
|
| energy_model.h | File | 13.12 KB | 0644 |
|
| entry-common.h | File | 18.62 KB | 0644 |
|
| entry-kvm.h | File | 2.77 KB | 0644 |
|
| err.h | File | 3.35 KB | 0644 |
|
| errname.h | File | 283 B | 0644 |
|
| errno.h | File | 1.45 KB | 0644 |
|
| error-injection.h | File | 630 B | 0644 |
|
| errqueue.h | File | 524 B | 0644 |
|
| errseq.h | File | 382 B | 0644 |
|
| etherdevice.h | File | 19.37 KB | 0644 |
|
| ethtool.h | File | 52.71 KB | 0644 |
|
| ethtool_netlink.h | File | 3.74 KB | 0644 |
|
| eventfd.h | File | 2.1 KB | 0644 |
|
| eventpoll.h | File | 2.41 KB | 0644 |
|
| evm.h | File | 2.12 KB | 0644 |
|
| execmem.h | File | 5.72 KB | 0644 |
|
| export-internal.h | File | 2.3 KB | 0644 |
|
| export.h | File | 2.67 KB | 0644 |
|
| exportfs.h | File | 11.19 KB | 0644 |
|
| ext2_fs.h | File | 967 B | 0644 |
|
| extable.h | File | 1.28 KB | 0644 |
|
| extcon-provider.h | File | 3.83 KB | 0644 |
|
| extcon.h | File | 9.99 KB | 0644 |
|
| f2fs_fs.h | File | 20.26 KB | 0644 |
|
| f75375s.h | File | 541 B | 0644 |
|
| falloc.h | File | 1.79 KB | 0644 |
|
| fanotify.h | File | 4.99 KB | 0644 |
|
| fault-inject-usercopy.h | File | 496 B | 0644 |
|
| fault-inject.h | File | 3.07 KB | 0644 |
|
| fb.h | File | 30.04 KB | 0644 |
|
| fbcon.h | File | 2.09 KB | 0644 |
|
| fcdevice.h | File | 774 B | 0644 |
|
| fcntl.h | File | 1.66 KB | 0644 |
|
| fd.h | File | 490 B | 0644 |
|
| fddidevice.h | File | 833 B | 0644 |
|
| fdtable.h | File | 3.08 KB | 0644 |
|
| fec.h | File | 463 B | 0644 |
|
| fiemap.h | File | 831 B | 0644 |
|
| file.h | File | 3.66 KB | 0644 |
|
| file_ref.h | File | 5.46 KB | 0644 |
|
| fileattr.h | File | 1.9 KB | 0644 |
|
| filelock.h | File | 13.17 KB | 0644 |
|
| filter.h | File | 48.89 KB | 0644 |
|
| find.h | File | 20.71 KB | 0644 |
|
| fips.h | File | 303 B | 0644 |
|
| firewire.h | File | 17.27 KB | 0644 |
|
| firmware-map.h | File | 959 B | 0644 |
|
| firmware.h | File | 6.3 KB | 0644 |
|
| fixp-arith.h | File | 4.21 KB | 0644 |
|
| flat.h | File | 2.57 KB | 0644 |
|
| flex_proportions.h | File | 1.98 KB | 0644 |
|
| folio_queue.h | File | 9.99 KB | 0644 |
|
| font.h | File | 1.7 KB | 0644 |
|
| fortify-string.h | File | 28.64 KB | 0644 |
|
| fprobe.h | File | 3.92 KB | 0644 |
|
| fpu.h | File | 246 B | 0644 |
|
| freezer.h | File | 2.34 KB | 0644 |
|
| fs.h | File | 129.11 KB | 0644 |
|
| fs_api.h | File | 22 B | 0644 |
|
| fs_context.h | File | 8.36 KB | 0644 |
|
| fs_parser.h | File | 5.01 KB | 0644 |
|
| fs_pin.h | File | 539 B | 0644 |
|
| fs_stack.h | File | 895 B | 0644 |
|
| fs_struct.h | File | 1.04 KB | 0644 |
|
| fs_types.h | File | 2.02 KB | 0644 |
|
| fscache-cache.h | File | 7.09 KB | 0644 |
|
| fscache.h | File | 24.09 KB | 0644 |
|
| fscrypt.h | File | 34.57 KB | 0644 |
|
| fsi-occ.h | File | 715 B | 0644 |
|
| fsi-sbefifo.h | File | 629 B | 0644 |
|
| fsi.h | File | 2.27 KB | 0644 |
|
| fsl-diu-fb.h | File | 3.87 KB | 0644 |
|
| fsl_devices.h | File | 4.16 KB | 0644 |
|
| fsl_hypervisor.h | File | 2.76 KB | 0644 |
|
| fsl_ifc.h | File | 24.48 KB | 0644 |
|
| fsldma.h | File | 202 B | 0644 |
|
| fsnotify.h | File | 13.17 KB | 0644 |
|
| fsnotify_backend.h | File | 31.2 KB | 0644 |
|
| fsverity.h | File | 9.29 KB | 0644 |
|
| ftrace.h | File | 43.74 KB | 0644 |
|
| ftrace_irq.h | File | 884 B | 0644 |
|
| ftrace_regs.h | File | 1.31 KB | 0644 |
|
| futex.h | File | 2.44 KB | 0644 |
|
| fw_table.h | File | 1.75 KB | 0644 |
|
| fwnode.h | File | 7.81 KB | 0644 |
|
| fwnode_mdio.h | File | 858 B | 0644 |
|
| gameport.h | File | 5.24 KB | 0644 |
|
| gcd.h | File | 193 B | 0644 |
|
| genalloc.h | File | 7.68 KB | 0644 |
|
| generic-radix-tree.h | File | 11.43 KB | 0644 |
|
| genl_magic_func.h | File | 11.67 KB | 0644 |
|
| genl_magic_struct.h | File | 7.58 KB | 0644 |
|
| getcpu.h | File | 641 B | 0644 |
|
| gfp.h | File | 14.84 KB | 0644 |
|
| gfp_api.h | File | 23 B | 0644 |
|
| gfp_types.h | File | 16.57 KB | 0644 |
|
| glob.h | File | 256 B | 0644 |
|
| gnss.h | File | 1.56 KB | 0644 |
|
| goldfish.h | File | 878 B | 0644 |
|
| gpio-pxa.h | File | 571 B | 0644 |
|
| gpio.h | File | 5.01 KB | 0644 |
|
| gpio_keys.h | File | 1.81 KB | 0644 |
|
| greybus.h | File | 3.57 KB | 0644 |
|
| group_cpus.h | File | 310 B | 0644 |
|
| hardirq.h | File | 3.25 KB | 0644 |
|
| hash.h | File | 2.93 KB | 0644 |
|
| hashtable.h | File | 6.67 KB | 0644 |
|
| hashtable_api.h | File | 29 B | 0644 |
|
| hdlc.h | File | 3.19 KB | 0644 |
|
| hdlcdrv.h | File | 6.32 KB | 0644 |
|
| hdmi.h | File | 12.84 KB | 0644 |
|
| hex.h | File | 884 B | 0644 |
|
| hid-debug.h | File | 1.42 KB | 0644 |
|
| hid-over-i2c.h | File | 3.53 KB | 0644 |
|
| hid-over-spi.h | File | 4.91 KB | 0644 |
|
| hid-roccat.h | File | 490 B | 0644 |
|
| hid-sensor-hub.h | File | 8.97 KB | 0644 |
|
| hid-sensor-ids.h | File | 7.85 KB | 0644 |
|
| hid.h | File | 39.52 KB | 0644 |
|
| hid_bpf.h | File | 8.19 KB | 0644 |
|
| hidden.h | File | 966 B | 0644 |
|
| hiddev.h | File | 1.42 KB | 0644 |
|
| hidraw.h | File | 1.13 KB | 0644 |
|
| highmem-internal.h | File | 6.62 KB | 0644 |
|
| highmem.h | File | 18.61 KB | 0644 |
|
| highuid.h | File | 3.12 KB | 0644 |
|
| hil.h | File | 18.42 KB | 0644 |
|
| hil_mlc.h | File | 5.13 KB | 0644 |
|
| hippidevice.h | File | 1.08 KB | 0644 |
|
| hisi_acc_qm.h | File | 14.13 KB | 0644 |
|
| hmm.h | File | 3.93 KB | 0644 |
|
| host1x.h | File | 13.67 KB | 0644 |
|
| host1x_context_bus.h | File | 337 B | 0644 |
|
| hp_sdc.h | File | 14.01 KB | 0644 |
|
| hpet.h | File | 2.55 KB | 0644 |
|
| hrtimer.h | File | 11.36 KB | 0644 |
|
| hrtimer_api.h | File | 27 B | 0644 |
|
| hrtimer_defs.h | File | 4.22 KB | 0644 |
|
| hrtimer_types.h | File | 1.53 KB | 0644 |
|
| hte.h | File | 7.37 KB | 0644 |
|
| huge_mm.h | File | 18.87 KB | 0644 |
|
| hugetlb.h | File | 36.03 KB | 0644 |
|
| hugetlb_cgroup.h | File | 6.78 KB | 0644 |
|
| hugetlb_inline.h | File | 374 B | 0644 |
|
| hw_breakpoint.h | File | 4.19 KB | 0644 |
|
| hw_random.h | File | 2.23 KB | 0644 |
|
| hwmon-sysfs.h | File | 2.8 KB | 0644 |
|
| hwmon-vid.h | File | 862 B | 0644 |
|
| hwmon.h | File | 15.94 KB | 0644 |
|
| hwspinlock.h | File | 15.79 KB | 0644 |
|
| hyperv.h | File | 49.31 KB | 0644 |
|
| hypervisor.h | File | 748 B | 0644 |
|
| i2c-algo-bit.h | File | 1.4 KB | 0644 |
|
| i2c-algo-pca.h | File | 2.89 KB | 0644 |
|
| i2c-algo-pcf.h | File | 1.21 KB | 0644 |
|
| i2c-atr.h | File | 3.95 KB | 0644 |
|
| i2c-dev.h | File | 371 B | 0644 |
|
| i2c-mux.h | File | 1.61 KB | 0644 |
|
| i2c-of-prober.h | File | 4.94 KB | 0644 |
|
| i2c-smbus.h | File | 1.69 KB | 0644 |
|
| i2c.h | File | 39.67 KB | 0644 |
|
| i8042.h | File | 2.45 KB | 0644 |
|
| i8253.h | File | 808 B | 0644 |
|
| i8254.h | File | 489 B | 0644 |
|
| icmp.h | File | 1 KB | 0644 |
|
| icmpv6.h | File | 2.87 KB | 0644 |
|
| idle_inject.h | File | 1.02 KB | 0644 |
|
| idr.h | File | 9.72 KB | 0644 |
|
| ieee80211.h | File | 180.45 KB | 0644 |
|
| ieee802154.h | File | 14.46 KB | 0644 |
|
| if_arp.h | File | 1.81 KB | 0644 |
|
| if_bridge.h | File | 5.42 KB | 0644 |
|
| if_eql.h | File | 1.13 KB | 0644 |
|
| if_ether.h | File | 1.26 KB | 0644 |
|
| if_fddi.h | File | 3.24 KB | 0644 |
|
| if_hsr.h | File | 1.5 KB | 0644 |
|
| if_link.h | File | 592 B | 0644 |
|
| if_macvlan.h | File | 2.76 KB | 0644 |
|
| if_phonet.h | File | 319 B | 0644 |
|
| if_pppol2tp.h | File | 501 B | 0644 |
|
| if_pppox.h | File | 2.83 KB | 0644 |
|
| if_rmnet.h | File | 2.06 KB | 0644 |
|
| if_tap.h | File | 2.21 KB | 0644 |
|
| if_team.h | File | 7.94 KB | 0644 |
|
| if_tun.h | File | 1.54 KB | 0644 |
|
| if_tunnel.h | File | 409 B | 0644 |
|
| if_vlan.h | File | 22.16 KB | 0644 |
|
| igmp.h | File | 4.42 KB | 0644 |
|
| ihex.h | File | 2.15 KB | 0644 |
|
| ima.h | File | 2.71 KB | 0644 |
|
| imx-media.h | File | 605 B | 0644 |
|
| in.h | File | 2.29 KB | 0644 |
|
| in6.h | File | 1.63 KB | 0644 |
|
| indirect_call_wrapper.h | File | 2.24 KB | 0644 |
|
| inet.h | File | 2.64 KB | 0644 |
|
| inet_diag.h | File | 2.76 KB | 0644 |
|
| inetdevice.h | File | 9.53 KB | 0644 |
|
| init.h | File | 12 KB | 0644 |
|
| init_ohci1394_dma.h | File | 196 B | 0644 |
|
| init_syscalls.h | File | 1.01 KB | 0644 |
|
| init_task.h | File | 1.1 KB | 0644 |
|
| initrd.h | File | 1008 B | 0644 |
|
| inotify.h | File | 628 B | 0644 |
|
| input.h | File | 20.81 KB | 0644 |
|
| instruction_pointer.h | File | 346 B | 0644 |
|
| instrumentation.h | File | 1.85 KB | 0644 |
|
| instrumented.h | File | 6.21 KB | 0644 |
|
| int_log.h | File | 1.26 KB | 0644 |
|
| integrity.h | File | 1.46 KB | 0644 |
|
| intel-ish-client-if.h | File | 4.13 KB | 0644 |
|
| intel_rapl.h | File | 6 KB | 0644 |
|
| intel_tcc.h | File | 466 B | 0644 |
|
| intel_th.h | File | 2.44 KB | 0644 |
|
| intel_tpmi.h | File | 1.99 KB | 0644 |
|
| intel_vsec.h | File | 4.24 KB | 0644 |
|
| interconnect-clk.h | File | 648 B | 0644 |
|
| interconnect-provider.h | File | 5.53 KB | 0644 |
|
| interconnect.h | File | 3.36 KB | 0644 |
|
| interrupt.h | File | 27.29 KB | 0644 |
|
| interval_tree.h | File | 2.88 KB | 0644 |
|
| interval_tree_generic.h | File | 6.7 KB | 0644 |
|
| io-64-nonatomic-hi-lo.h | File | 2.41 KB | 0644 |
|
| io-64-nonatomic-lo-hi.h | File | 2.41 KB | 0644 |
|
| io-mapping.h | File | 4.69 KB | 0644 |
|
| io-pgtable.h | File | 10.18 KB | 0644 |
|
| io.h | File | 5.51 KB | 0644 |
|
| io_uring.h | File | 1.04 KB | 0644 |
|
| io_uring_types.h | File | 18.69 KB | 0644 |
|
| ioam6.h | File | 226 B | 0644 |
|
| ioam6_genl.h | File | 266 B | 0644 |
|
| ioam6_iptunnel.h | File | 285 B | 0644 |
|
| iocontext.h | File | 4.16 KB | 0644 |
|
| iomap.h | File | 15.6 KB | 0644 |
|
| iommu-dma.h | File | 2.98 KB | 0644 |
|
| iommu-helper.h | File | 1.12 KB | 0644 |
|
| iommu.h | File | 53.6 KB | 0644 |
|
| iommufd.h | File | 7.34 KB | 0644 |
|
| iopoll.h | File | 7.9 KB | 0644 |
|
| ioport.h | File | 15.09 KB | 0644 |
|
| ioprio.h | File | 2.17 KB | 0644 |
|
| ioremap.h | File | 744 B | 0644 |
|
| iosys-map.h | File | 16.8 KB | 0644 |
|
| iov_iter.h | File | 10.36 KB | 0644 |
|
| iova.h | File | 4.2 KB | 0644 |
|
| iova_bitmap.h | File | 1.31 KB | 0644 |
|
| ip.h | File | 1.56 KB | 0644 |
|
| ipack.h | File | 8.69 KB | 0644 |
|
| ipc.h | File | 619 B | 0644 |
|
| ipc_namespace.h | File | 5.63 KB | 0644 |
|
| ipmi.h | File | 11.09 KB | 0644 |
|
| ipmi_smi.h | File | 9.83 KB | 0644 |
|
| ipv6.h | File | 8.23 KB | 0644 |
|
| ipv6_route.h | File | 372 B | 0644 |
|
| irq.h | File | 43.49 KB | 0644 |
|
| irq_poll.h | File | 575 B | 0644 |
|
| irq_sim.h | File | 1.35 KB | 0644 |
|
| irq_work.h | File | 2.04 KB | 0644 |
|
| irqbypass.h | File | 3.45 KB | 0644 |
|
| irqchip.h | File | 2.65 KB | 0644 |
|
| irqdesc.h | File | 8.04 KB | 0644 |
|
| irqdomain.h | File | 24.75 KB | 0644 |
|
| irqdomain_defs.h | File | 842 B | 0644 |
|
| irqflags.h | File | 7.96 KB | 0644 |
|
| irqflags_types.h | File | 563 B | 0644 |
|
| irqhandler.h | File | 284 B | 0644 |
|
| irqnr.h | File | 1.5 KB | 0644 |
|
| irqreturn.h | File | 529 B | 0644 |
|
| isa-dma.h | File | 276 B | 0644 |
|
| isa.h | File | 3.33 KB | 0644 |
|
| isapnp.h | File | 2.88 KB | 0644 |
|
| iscsi_boot_sysfs.h | File | 3.71 KB | 0644 |
|
| iscsi_ibft.h | File | 994 B | 0644 |
|
| ism.h | File | 2.2 KB | 0644 |
|
| iversion.h | File | 10.96 KB | 0644 |
|
| jbd2.h | File | 51.56 KB | 0644 |
|
| jhash.h | File | 4.56 KB | 0644 |
|
| jiffies.h | File | 20.07 KB | 0644 |
|
| journal-head.h | File | 2.91 KB | 0644 |
|
| joystick.h | File | 437 B | 0644 |
|
| jump_label.h | File | 16.45 KB | 0644 |
|
| jump_label_ratelimit.h | File | 2.77 KB | 0644 |
|
| jz4740-adc.h | File | 1023 B | 0644 |
|
| jz4780-nemc.h | File | 976 B | 0644 |
|
| kallsyms.h | File | 4.26 KB | 0644 |
|
| kasan-checks.h | File | 1.46 KB | 0644 |
|
| kasan-enabled.h | File | 639 B | 0644 |
|
| kasan-tags.h | File | 487 B | 0644 |
|
| kasan.h | File | 20.56 KB | 0644 |
|
| kbd_diacr.h | File | 198 B | 0644 |
|
| kbd_kern.h | File | 3.6 KB | 0644 |
|
| kbuild.h | File | 380 B | 0644 |
|
| kconfig.h | File | 2.63 KB | 0644 |
|
| kcore.h | File | 611 B | 0644 |
|
| kcov.h | File | 4.31 KB | 0644 |
|
| kcsan-checks.h | File | 18.63 KB | 0644 |
|
| kcsan.h | File | 2.19 KB | 0644 |
|
| kdb.h | File | 7.36 KB | 0644 |
|
| kdebug.h | File | 487 B | 0644 |
|
| kdev_t.h | File | 1.8 KB | 0644 |
|
| kern_levels.h | File | 1.57 KB | 0644 |
|
| kernel-page-flags.h | File | 522 B | 0644 |
|
| kernel.h | File | 12.88 KB | 0644 |
|
| kernel_read_file.h | File | 1.62 KB | 0644 |
|
| kernel_stat.h | File | 3.63 KB | 0644 |
|
| kernelcapi.h | File | 1.45 KB | 0644 |
|
| kernfs.h | File | 19.49 KB | 0644 |
|
| kexec.h | File | 12.68 KB | 0644 |
|
| key-type.h | File | 6.63 KB | 0644 |
|
| key.h | File | 16.05 KB | 0644 |
|
| keyboard.h | File | 665 B | 0644 |
|
| keyctl.h | File | 1.25 KB | 0644 |
|
| kfence.h | File | 8.7 KB | 0644 |
|
| kfifo.h | File | 28.9 KB | 0644 |
|
| kgdb.h | File | 12.02 KB | 0644 |
|
| khugepaged.h | File | 1.78 KB | 0644 |
|
| klist.h | File | 1.88 KB | 0644 |
|
| kmemleak.h | File | 3.24 KB | 0644 |
|
| kmod.h | File | 1.02 KB | 0644 |
|
| kmsan-checks.h | File | 2.86 KB | 0644 |
|
| kmsan.h | File | 11.52 KB | 0644 |
|
| kmsan_string.h | File | 681 B | 0644 |
|
| kmsan_types.h | File | 906 B | 0644 |
|
| kmsg_dump.h | File | 3.12 KB | 0644 |
|
| kobj_map.h | File | 545 B | 0644 |
|
| kobject.h | File | 6.96 KB | 0644 |
|
| kobject_api.h | File | 27 B | 0644 |
|
| kobject_ns.h | File | 1.79 KB | 0644 |
|
| kprobes.h | File | 16.25 KB | 0644 |
|
| kref.h | File | 3.84 KB | 0644 |
|
| kref_api.h | File | 24 B | 0644 |
|
| ks0108.h | File | 970 B | 0644 |
|
| ks8842.h | File | 632 B | 0644 |
|
| ks8851_mll.h | File | 472 B | 0644 |
|
| ksm.h | File | 4.08 KB | 0644 |
|
| kstrtox.h | File | 6.51 KB | 0644 |
|
| kthread.h | File | 8.48 KB | 0644 |
|
| ktime.h | File | 5.4 KB | 0644 |
|
| ktime_api.h | File | 25 B | 0644 |
|
| kvm_dirty_ring.h | File | 2.68 KB | 0644 |
|
| kvm_host.h | File | 77.92 KB | 0644 |
|
| kvm_irqfd.h | File | 1.99 KB | 0644 |
|
| kvm_para.h | File | 402 B | 0644 |
|
| kvm_types.h | File | 2.6 KB | 0644 |
|
| l2tp.h | File | 261 B | 0644 |
|
| lantiq.h | File | 365 B | 0644 |
|
| lapb.h | File | 1.78 KB | 0644 |
|
| latencytop.h | File | 1.06 KB | 0644 |
|
| lcd.h | File | 4.18 KB | 0644 |
|
| lcm.h | File | 275 B | 0644 |
|
| led-class-flash.h | File | 6.08 KB | 0644 |
|
| led-class-multicolor.h | File | 2.44 KB | 0644 |
|
| led-lm3530.h | File | 3.7 KB | 0644 |
|
| leds-bd2802.h | File | 476 B | 0644 |
|
| leds-expresswire.h | File | 1.13 KB | 0644 |
|
| leds-lp3944.h | File | 950 B | 0644 |
|
| leds-lp3952.h | File | 2.35 KB | 0644 |
|
| leds-pca9532.h | File | 866 B | 0644 |
|
| leds-regulator.h | File | 1.14 KB | 0644 |
|
| leds-ti-lmu-common.h | File | 1.12 KB | 0644 |
|
| leds.h | File | 23.34 KB | 0644 |
|
| libata.h | File | 69.91 KB | 0644 |
|
| libfdt.h | File | 202 B | 0644 |
|
| libfdt_env.h | File | 491 B | 0644 |
|
| libgcc.h | File | 875 B | 0644 |
|
| libnvdimm.h | File | 9.93 KB | 0644 |
|
| libps2.h | File | 2.47 KB | 0644 |
|
| license.h | File | 418 B | 0644 |
|
| limits.h | File | 809 B | 0644 |
|
| linear_range.h | File | 2.01 KB | 0644 |
|
| linkage.h | File | 9.56 KB | 0644 |
|
| linkmode.h | File | 2.17 KB | 0644 |
|
| linux_logo.h | File | 1.81 KB | 0644 |
|
| lis3lv02d.h | File | 5 KB | 0644 |
|
| list.h | File | 35.12 KB | 0644 |
|
| list_bl.h | File | 4.79 KB | 0644 |
|
| list_lru.h | File | 9.8 KB | 0644 |
|
| list_nulls.h | File | 4.22 KB | 0644 |
|
| list_sort.h | File | 374 B | 0644 |
|
| litex.h | File | 2.06 KB | 0644 |
|
| livepatch.h | File | 8.26 KB | 0644 |
|
| livepatch_sched.h | File | 802 B | 0644 |
|
| llc.h | File | 749 B | 0644 |
|
| llist.h | File | 10.43 KB | 0644 |
|
| llist_api.h | File | 25 B | 0644 |
|
| local_lock.h | File | 1.98 KB | 0644 |
|
| local_lock_internal.h | File | 4.24 KB | 0644 |
|
| lockdep.h | File | 20.9 KB | 0644 |
|
| lockdep_api.h | File | 27 B | 0644 |
|
| lockdep_types.h | File | 7.61 KB | 0644 |
|
| lockref.h | File | 1.65 KB | 0644 |
|
| log2.h | File | 6.24 KB | 0644 |
|
| logic_iomem.h | File | 2.07 KB | 0644 |
|
| logic_pio.h | File | 3.11 KB | 0644 |
|
| lp.h | File | 2.76 KB | 0644 |
|
| lru_cache.h | File | 11.67 KB | 0644 |
|
| lsm_audit.h | File | 3.22 KB | 0644 |
|
| lsm_count.h | File | 2.36 KB | 0644 |
|
| lsm_hook_defs.h | File | 24.09 KB | 0644 |
|
| lsm_hooks.h | File | 4.81 KB | 0644 |
|
| lwq.h | File | 3.69 KB | 0644 |
|
| lz4.h | File | 26.69 KB | 0644 |
|
| lzo.h | File | 1.93 KB | 0644 |
|
| mISDNdsp.h | File | 1.19 KB | 0644 |
|
| mISDNhw.h | File | 5.39 KB | 0644 |
|
| mISDNif.h | File | 14.9 KB | 0644 |
|
| mailbox_client.h | File | 1.78 KB | 0644 |
|
| mailbox_controller.h | File | 5.7 KB | 0644 |
|
| map_benchmark.h | File | 1.07 KB | 0644 |
|
| maple.h | File | 2.68 KB | 0644 |
|
| maple_tree.h | File | 28.94 KB | 0644 |
|
| marvell_phy.h | File | 1.94 KB | 0644 |
|
| math.h | File | 6.31 KB | 0644 |
|
| math64.h | File | 9 KB | 0644 |
|
| mbcache.h | File | 2.09 KB | 0644 |
|
| mbus.h | File | 3.09 KB | 0644 |
|
| mc146818rtc.h | File | 4.72 KB | 0644 |
|
| mc6821.h | File | 1.18 KB | 0644 |
|
| mcb.h | File | 3.62 KB | 0644 |
|
| mdev.h | File | 2.36 KB | 0644 |
|
| mdio-bitbang.h | File | 1.46 KB | 0644 |
|
| mdio-gpio.h | File | 177 B | 0644 |
|
| mdio-mux.h | File | 1021 B | 0644 |
|
| mdio.h | File | 22.72 KB | 0644 |
|
| mei_aux.h | File | 929 B | 0644 |
|
| mei_cl_bus.h | File | 4.6 KB | 0644 |
|
| mem_encrypt.h | File | 1.31 KB | 0644 |
|
| memblock.h | File | 20.4 KB | 0644 |
|
| memcontrol.h | File | 45.83 KB | 0644 |
|
| memfd.h | File | 950 B | 0644 |
|
| memory-tiers.h | File | 3.94 KB | 0644 |
|
| memory.h | File | 6.42 KB | 0644 |
|
| memory_hotplug.h | File | 10.77 KB | 0644 |
|
| mempolicy.h | File | 7.25 KB | 0644 |
|
| mempool.h | File | 4.28 KB | 0644 |
|
| memregion.h | File | 1.8 KB | 0644 |
|
| memremap.h | File | 7.67 KB | 0644 |
|
| memstick.h | File | 9.61 KB | 0644 |
|
| mhi.h | File | 27.42 KB | 0644 |
|
| mhi_ep.h | File | 10.63 KB | 0644 |
|
| micrel_phy.h | File | 2.1 KB | 0644 |
|
| microchipphy.h | File | 2.65 KB | 0644 |
|
| migrate.h | File | 7.72 KB | 0644 |
|
| migrate_mode.h | File | 713 B | 0644 |
|
| mii.h | File | 15.51 KB | 0644 |
|
| mii_timestamper.h | File | 3.66 KB | 0644 |
|
| min_heap.h | File | 15.78 KB | 0644 |
|
| minmax.h | File | 10 KB | 0644 |
|
| misc_cgroup.h | File | 3.23 KB | 0644 |
|
| miscdevice.h | File | 3.21 KB | 0644 |
|
| mm.h | File | 126.61 KB | 0644 |
|
| mm_api.h | File | 22 B | 0644 |
|
| mm_inline.h | File | 17.38 KB | 0644 |
|
| mm_types.h | File | 51.72 KB | 0644 |
|
| mm_types_task.h | File | 2.32 KB | 0644 |
|
| mman.h | File | 5.48 KB | 0644 |
|
| mmap_lock.h | File | 6.03 KB | 0644 |
|
| mmdebug.h | File | 4.28 KB | 0644 |
|
| mmiotrace.h | File | 3.05 KB | 0644 |
|
| mmu_context.h | File | 1.13 KB | 0644 |
|
| mmu_notifier.h | File | 21.93 KB | 0644 |
|
| mmzone.h | File | 66.74 KB | 0644 |
|
| mnt_idmapping.h | File | 6.88 KB | 0644 |
|
| mnt_namespace.h | File | 767 B | 0644 |
|
| mod_devicetable.h | File | 25.41 KB | 0644 |
|
| module.h | File | 27.85 KB | 0644 |
|
| module_signature.h | File | 1.22 KB | 0644 |
|
| module_symbol.h | File | 409 B | 0644 |
|
| moduleloader.h | File | 3.84 KB | 0644 |
|
| moduleparam.h | File | 22.51 KB | 0644 |
|
| most.h | File | 12.2 KB | 0644 |
|
| mount.h | File | 4.21 KB | 0644 |
|
| moxtet.h | File | 2.27 KB | 0644 |
|
| mpage.h | File | 644 B | 0644 |
|
| mpi.h | File | 3.17 KB | 0644 |
|
| mpls.h | File | 394 B | 0644 |
|
| mpls_iptunnel.h | File | 178 B | 0644 |
|
| mroute.h | File | 2.12 KB | 0644 |
|
| mroute6.h | File | 2.93 KB | 0644 |
|
| mroute_base.h | File | 12.45 KB | 0644 |
|
| msdos_fs.h | File | 273 B | 0644 |
|
| msdos_partition.h | File | 1.62 KB | 0644 |
|
| msg.h | File | 395 B | 0644 |
|
| msi.h | File | 22.01 KB | 0644 |
|
| msi_api.h | File | 1.93 KB | 0644 |
|
| mtio.h | File | 1.29 KB | 0644 |
|
| mutex.h | File | 5.82 KB | 0644 |
|
| mutex_api.h | File | 25 B | 0644 |
|
| mutex_types.h | File | 2.09 KB | 0644 |
|
| mv643xx_eth.h | File | 2 KB | 0644 |
|
| mv643xx_i2c.h | File | 335 B | 0644 |
|
| mvebu-pmsu.h | File | 520 B | 0644 |
|
| mxm-wmi.h | File | 399 B | 0644 |
|
| namei.h | File | 5.46 KB | 0644 |
|
| nd.h | File | 6.19 KB | 0644 |
|
| ndctl.h | File | 674 B | 0644 |
|
| net.h | File | 11.86 KB | 0644 |
|
| net_tstamp.h | File | 2.97 KB | 0644 |
|
| netdev_features.h | File | 10.5 KB | 0644 |
|
| netdevice.h | File | 170.32 KB | 0644 |
|
| netdevice_xmit.h | File | 223 B | 0644 |
|
| netfilter.h | File | 14.03 KB | 0644 |
|
| netfilter_bridge.h | File | 2.08 KB | 0644 |
|
| netfilter_defs.h | File | 242 B | 0644 |
|
| netfilter_ipv4.h | File | 1.05 KB | 0644 |
|
| netfilter_ipv6.h | File | 5.86 KB | 0644 |
|
| netfilter_netdev.h | File | 3.97 KB | 0644 |
|
| netfs.h | File | 21.8 KB | 0644 |
|
| netlink.h | File | 10.69 KB | 0644 |
|
| netpoll.h | File | 2.52 KB | 0644 |
|
| nfs.h | File | 1.71 KB | 0644 |
|
| nfs3.h | File | 260 B | 0644 |
|
| nfs4.h | File | 24.25 KB | 0644 |
|
| nfs_common.h | File | 458 B | 0644 |
|
| nfs_fs.h | File | 20.45 KB | 0644 |
|
| nfs_fs_i.h | File | 308 B | 0644 |
|
| nfs_fs_sb.h | File | 11.34 KB | 0644 |
|
| nfs_iostat.h | File | 3.92 KB | 0644 |
|
| nfs_page.h | File | 8.48 KB | 0644 |
|
| nfs_ssc.h | File | 2.01 KB | 0644 |
|
| nfs_xdr.h | File | 43.3 KB | 0644 |
|
| nfsacl.h | File | 1.4 KB | 0644 |
|
| nfslocalio.h | File | 3.47 KB | 0644 |
|
| nitro_enclaves.h | File | 267 B | 0644 |
|
| nl802154.h | File | 3.87 KB | 0644 |
|
| nls.h | File | 3.09 KB | 0644 |
|
| nmi.h | File | 7.21 KB | 0644 |
|
| node.h | File | 4.67 KB | 0644 |
|
| nodemask.h | File | 17.89 KB | 0644 |
|
| nodemask_types.h | File | 263 B | 0644 |
|
| nospec.h | File | 2.24 KB | 0644 |
|
| notifier.h | File | 8.18 KB | 0644 |
|
| ns_common.h | File | 284 B | 0644 |
|
| nsc_gpio.h | File | 1.42 KB | 0644 |
|
| nsproxy.h | File | 3.67 KB | 0644 |
|
| ntb.h | File | 52.43 KB | 0644 |
|
| ntb_transport.h | File | 3.8 KB | 0644 |
|
| nubus.h | File | 5.54 KB | 0644 |
|
| numa.h | File | 1.6 KB | 0644 |
|
| numa_memblks.h | File | 1.57 KB | 0644 |
|
| nvme-auth.h | File | 1.44 KB | 0644 |
|
| nvme-fc-driver.h | File | 46.78 KB | 0644 |
|
| nvme-fc.h | File | 9.72 KB | 0644 |
|
| nvme-keyring.h | File | 732 B | 0644 |
|
| nvme-rdma.h | File | 2.31 KB | 0644 |
|
| nvme-tcp.h | File | 4.67 KB | 0644 |
|
| nvme.h | File | 50.91 KB | 0644 |
|
| nvmem-consumer.h | File | 6.87 KB | 0644 |
|
| nvmem-provider.h | File | 8.03 KB | 0644 |
|
| nvram.h | File | 3.47 KB | 0644 |
|
| oa_tc6.h | File | 947 B | 0644 |
|
| objagg.h | File | 1.94 KB | 0644 |
|
| objpool.h | File | 9.58 KB | 0644 |
|
| objtool.h | File | 6.62 KB | 0644 |
|
| objtool_types.h | File | 2.08 KB | 0644 |
|
| of.h | File | 51.38 KB | 0644 |
|
| of_address.h | File | 5.5 KB | 0644 |
|
| of_clk.h | File | 819 B | 0644 |
|
| of_device.h | File | 2.23 KB | 0644 |
|
| of_dma.h | File | 2.3 KB | 0644 |
|
| of_fdt.h | File | 3.48 KB | 0644 |
|
| of_gpio.h | File | 878 B | 0644 |
|
| of_graph.h | File | 5.4 KB | 0644 |
|
| of_iommu.h | File | 671 B | 0644 |
|
| of_irq.h | File | 3.83 KB | 0644 |
|
| of_mdio.h | File | 3.91 KB | 0644 |
|
| of_net.h | File | 1.15 KB | 0644 |
|
| of_pci.h | File | 915 B | 0644 |
|
| of_pdt.h | File | 1.14 KB | 0644 |
|
| of_platform.h | File | 4.07 KB | 0644 |
|
| of_reserved_mem.h | File | 2.22 KB | 0644 |
|
| oid_registry.h | File | 6.02 KB | 0644 |
|
| olpc-ec.h | File | 2 KB | 0644 |
|
| omap-dma.h | File | 9.54 KB | 0644 |
|
| omap-gpmc.h | File | 2.29 KB | 0644 |
|
| omap-iommu.h | File | 880 B | 0644 |
|
| omap-mailbox.h | File | 272 B | 0644 |
|
| omapfb.h | File | 576 B | 0644 |
|
| once.h | File | 2.66 KB | 0644 |
|
| once_lite.h | File | 926 B | 0644 |
|
| oom.h | File | 2.81 KB | 0644 |
|
| openvswitch.h | File | 403 B | 0644 |
|
| osq_lock.h | File | 912 B | 0644 |
|
| overflow.h | File | 14.82 KB | 0644 |
|
| packing.h | File | 16 KB | 0644 |
|
| padata.h | File | 6.21 KB | 0644 |
|
| page-flags-layout.h | File | 3.73 KB | 0644 |
|
| page-flags.h | File | 39.15 KB | 0644 |
|
| page-isolation.h | File | 1.04 KB | 0644 |
|
| page_counter.h | File | 3.21 KB | 0644 |
|
| page_ext.h | File | 2.9 KB | 0644 |
|
| page_frag_cache.h | File | 1.71 KB | 0644 |
|
| page_idle.h | File | 1.95 KB | 0644 |
|
| page_owner.h | File | 2.38 KB | 0644 |
|
| page_ref.h | File | 7.6 KB | 0644 |
|
| page_reporting.h | File | 895 B | 0644 |
|
| page_table_check.h | File | 3.74 KB | 0644 |
|
| pageblock-flags.h | File | 2.8 KB | 0644 |
|
| pagemap.h | File | 51.01 KB | 0644 |
|
| pagevec.h | File | 2.62 KB | 0644 |
|
| pagewalk.h | File | 7.36 KB | 0644 |
|
| panic.h | File | 2.83 KB | 0644 |
|
| panic_notifier.h | File | 296 B | 0644 |
|
| papr_scm.h | File | 2.17 KB | 0644 |
|
| parman.h | File | 2.87 KB | 0644 |
|
| parport.h | File | 18.87 KB | 0644 |
|
| parport_pc.h | File | 6.62 KB | 0644 |
|
| parser.h | File | 1.17 KB | 0644 |
|
| part_stat.h | File | 2.38 KB | 0644 |
|
| pata_arasan_cf_data.h | File | 1.22 KB | 0644 |
|
| patchkey.h | File | 757 B | 0644 |
|
| path.h | File | 752 B | 0644 |
|
| pch_dma.h | File | 408 B | 0644 |
|
| pci-acpi.h | File | 4.18 KB | 0644 |
|
| pci-ats.h | File | 2.01 KB | 0644 |
|
| pci-bwctrl.h | File | 650 B | 0644 |
|
| pci-doe.h | File | 576 B | 0644 |
|
| pci-ecam.h | File | 3.43 KB | 0644 |
|
| pci-ep-cfs.h | File | 956 B | 0644 |
|
| pci-epc.h | File | 12.02 KB | 0644 |
|
| pci-epf.h | File | 7.84 KB | 0644 |
|
| pci-p2pdma.h | File | 3.01 KB | 0644 |
|
| pci-pwrctrl.h | File | 1.74 KB | 0644 |
|
| pci-tph.h | File | 1.44 KB | 0644 |
|
| pci.h | File | 98.79 KB | 0644 |
|
| pci_hotplug.h | File | 4.35 KB | 0644 |
|
| pci_ids.h | File | 125.8 KB | 0644 |
|
| pcs-lynx.h | File | 442 B | 0644 |
|
| pcs-rzn1-miic.h | File | 385 B | 0644 |
|
| pe.h | File | 16.73 KB | 0644 |
|
| peci-cpu.h | File | 2.29 KB | 0644 |
|
| peci.h | File | 3.08 KB | 0644 |
|
| percpu-defs.h | File | 17.3 KB | 0644 |
|
| percpu-refcount.h | File | 11.22 KB | 0644 |
|
| percpu-rwsem.h | File | 4.32 KB | 0644 |
|
| percpu.h | File | 5.17 KB | 0644 |
|
| percpu_counter.h | File | 6.81 KB | 0644 |
|
| perf_event.h | File | 59.38 KB | 0644 |
|
| perf_event_api.h | File | 30 B | 0644 |
|
| perf_regs.h | File | 1.05 KB | 0644 |
|
| personality.h | File | 393 B | 0644 |
|
| pfn.h | File | 666 B | 0644 |
|
| pfn_t.h | File | 3.21 KB | 0644 |
|
| pgalloc_tag.h | File | 6.2 KB | 0644 |
|
| pgtable.h | File | 53.52 KB | 0644 |
|
| pgtable_api.h | File | 27 B | 0644 |
|
| phonet.h | File | 537 B | 0644 |
|
| phy.h | File | 77.74 KB | 0644 |
|
| phy_fixed.h | File | 1.82 KB | 0644 |
|
| phy_led_triggers.h | File | 1.01 KB | 0644 |
|
| phy_link_topology.h | File | 1.74 KB | 0644 |
|
| phylib_stubs.h | File | 2.64 KB | 0644 |
|
| phylink.h | File | 29.83 KB | 0644 |
|
| pid.h | File | 9.4 KB | 0644 |
|
| pid_namespace.h | File | 3.29 KB | 0644 |
|
| pid_types.h | File | 282 B | 0644 |
|
| pidfs.h | File | 356 B | 0644 |
|
| pim.h | File | 2.67 KB | 0644 |
|
| pipe_fs_i.h | File | 10.26 KB | 0644 |
|
| pkeys.h | File | 990 B | 0644 |
|
| pktcdvd.h | File | 5.7 KB | 0644 |
|
| pl320-ipc.h | File | 209 B | 0644 |
|
| platform_device.h | File | 13.15 KB | 0644 |
|
| platform_profile.h | File | 2.02 KB | 0644 |
|
| pldmfw.h | File | 4.91 KB | 0644 |
|
| plist.h | File | 8.58 KB | 0644 |
|
| plist_types.h | File | 315 B | 0644 |
|
| pm-trace.h | File | 940 B | 0644 |
|
| pm.h | File | 36.63 KB | 0644 |
|
| pm_clock.h | File | 2.59 KB | 0644 |
|
| pm_domain.h | File | 16.68 KB | 0644 |
|
| pm_opp.h | File | 18.9 KB | 0644 |
|
| pm_qos.h | File | 10.41 KB | 0644 |
|
| pm_runtime.h | File | 20.47 KB | 0644 |
|
| pm_wakeirq.h | File | 1009 B | 0644 |
|
| pm_wakeup.h | File | 7.43 KB | 0644 |
|
| pmbus.h | File | 2.86 KB | 0644 |
|
| pmu.h | File | 2.45 KB | 0644 |
|
| pnp.h | File | 14.98 KB | 0644 |
|
| poison.h | File | 2.84 KB | 0644 |
|
| poll.h | File | 3.86 KB | 0644 |
|
| polynomial.h | File | 814 B | 0644 |
|
| posix-clock.h | File | 4.52 KB | 0644 |
|
| posix-timers.h | File | 7.09 KB | 0644 |
|
| posix-timers_types.h | File | 2.21 KB | 0644 |
|
| posix_acl.h | File | 4.32 KB | 0644 |
|
| posix_acl_xattr.h | File | 1.95 KB | 0644 |
|
| power_supply.h | File | 41.09 KB | 0644 |
|
| powercap.h | File | 11.98 KB | 0644 |
|
| ppp-comp.h | File | 2.97 KB | 0644 |
|
| ppp_channel.h | File | 3.04 KB | 0644 |
|
| ppp_defs.h | File | 663 B | 0644 |
|
| pps_gen_kernel.h | File | 1.95 KB | 0644 |
|
| pps_kernel.h | File | 2.94 KB | 0644 |
|
| pr.h | File | 1.33 KB | 0644 |
|
| prandom.h | File | 1.31 KB | 0644 |
|
| preempt.h | File | 15.9 KB | 0644 |
|
| prefetch.h | File | 1.55 KB | 0644 |
|
| prime_numbers.h | File | 1.35 KB | 0644 |
|
| printk.h | File | 23.79 KB | 0644 |
|
| prmt.h | File | 342 B | 0644 |
|
| proc_fs.h | File | 9.13 KB | 0644 |
|
| proc_ns.h | File | 2.52 KB | 0644 |
|
| processor.h | File | 1.84 KB | 0644 |
|
| profile.h | File | 1.39 KB | 0644 |
|
| projid.h | File | 2.22 KB | 0644 |
|
| property.h | File | 19.91 KB | 0644 |
|
| pruss_driver.h | File | 4.44 KB | 0644 |
|
| psci.h | File | 1.52 KB | 0644 |
|
| pseudo_fs.h | File | 401 B | 0644 |
|
| psi.h | File | 1.78 KB | 0644 |
|
| psi_types.h | File | 4.94 KB | 0644 |
|
| psp-platform-access.h | File | 1.86 KB | 0644 |
|
| psp-sev.h | File | 27.29 KB | 0644 |
|
| psp-tee.h | File | 2.65 KB | 0644 |
|
| psp.h | File | 697 B | 0644 |
|
| pstore.h | File | 7.77 KB | 0644 |
|
| pstore_blk.h | File | 1.53 KB | 0644 |
|
| pstore_ram.h | File | 883 B | 0644 |
|
| pstore_zone.h | File | 2.28 KB | 0644 |
|
| ptdump.h | File | 815 B | 0644 |
|
| pti.h | File | 251 B | 0644 |
|
| ptp_classify.h | File | 6.89 KB | 0644 |
|
| ptp_clock_kernel.h | File | 16.23 KB | 0644 |
|
| ptp_kvm.h | File | 505 B | 0644 |
|
| ptp_mock.h | File | 670 B | 0644 |
|
| ptp_pch.h | File | 666 B | 0644 |
|
| ptr_ring.h | File | 16.54 KB | 0644 |
|
| ptrace.h | File | 16.79 KB | 0644 |
|
| ptrace_api.h | File | 26 B | 0644 |
|
| purgatory.h | File | 590 B | 0644 |
|
| pvclock_gtod.h | File | 548 B | 0644 |
|
| pwm.h | File | 18.78 KB | 0644 |
|
| pwm_backlight.h | File | 649 B | 0644 |
|
| pxa168_eth.h | File | 728 B | 0644 |
|
| pxa2xx_ssp.h | File | 11.13 KB | 0644 |
|
| qnx6_fs.h | File | 3.27 KB | 0644 |
|
| quota.h | File | 18.76 KB | 0644 |
|
| quotaops.h | File | 10.27 KB | 0644 |
|
| radix-tree.h | File | 15.95 KB | 0644 |
|
| raid_class.h | File | 2.01 KB | 0644 |
|
| ramfs.h | File | 746 B | 0644 |
|
| random.h | File | 4.97 KB | 0644 |
|
| randomize_kstack.h | File | 3.96 KB | 0644 |
|
| range.h | File | 1.07 KB | 0644 |
|
| ras.h | File | 1.53 KB | 0644 |
|
| ratelimit.h | File | 1.72 KB | 0644 |
|
| ratelimit_types.h | File | 1.33 KB | 0644 |
|
| rational.h | File | 639 B | 0644 |
|
| rbtree.h | File | 11.32 KB | 0644 |
|
| rbtree_augmented.h | File | 10.18 KB | 0644 |
|
| rbtree_latch.h | File | 6.73 KB | 0644 |
|
| rbtree_types.h | File | 946 B | 0644 |
|
| rcu_node_tree.h | File | 3.73 KB | 0644 |
|
| rcu_notifier.h | File | 1.09 KB | 0644 |
|
| rcu_segcblist.h | File | 10.77 KB | 0644 |
|
| rcu_sync.h | File | 1.41 KB | 0644 |
|
| rculist.h | File | 30.59 KB | 0644 |
|
| rculist_bl.h | File | 3.29 KB | 0644 |
|
| rculist_nulls.h | File | 6.6 KB | 0644 |
|
| rcupdate.h | File | 42.48 KB | 0644 |
|
| rcupdate_trace.h | File | 3.27 KB | 0644 |
|
| rcupdate_wait.h | File | 2.55 KB | 0644 |
|
| rcuref.h | File | 4.66 KB | 0644 |
|
| rcutiny.h | File | 4.55 KB | 0644 |
|
| rcutree.h | File | 4.34 KB | 0644 |
|
| rcuwait.h | File | 2.32 KB | 0644 |
|
| rcuwait_api.h | File | 27 B | 0644 |
|
| reboot-mode.h | File | 600 B | 0644 |
|
| reboot.h | File | 5.3 KB | 0644 |
|
| reciprocal_div.h | File | 3.28 KB | 0644 |
|
| ref_tracker.h | File | 2.35 KB | 0644 |
|
| refcount.h | File | 11.83 KB | 0644 |
|
| refcount_api.h | File | 28 B | 0644 |
|
| refcount_types.h | File | 512 B | 0644 |
|
| regmap.h | File | 72.65 KB | 0644 |
|
| regset.h | File | 11.35 KB | 0644 |
|
| relay.h | File | 8.47 KB | 0644 |
|
| remoteproc.h | File | 25.08 KB | 0644 |
|
| resctrl.h | File | 11.58 KB | 0644 |
|
| reset-controller.h | File | 3.79 KB | 0644 |
|
| reset.h | File | 37.86 KB | 0644 |
|
| resource.h | File | 223 B | 0644 |
|
| resource_ext.h | File | 2.08 KB | 0644 |
|
| restart_block.h | File | 1.11 KB | 0644 |
|
| resume_user_mode.h | File | 1.88 KB | 0644 |
|
| rethook.h | File | 3.15 KB | 0644 |
|
| rfkill.h | File | 10.79 KB | 0644 |
|
| rhashtable-types.h | File | 3.72 KB | 0644 |
|
| rhashtable.h | File | 37.93 KB | 0644 |
|
| ring_buffer.h | File | 8.82 KB | 0644 |
|
| rio.h | File | 19.02 KB | 0644 |
|
| rio_drv.h | File | 14.32 KB | 0644 |
|
| rio_ids.h | File | 723 B | 0644 |
|
| rio_regs.h | File | 19.07 KB | 0644 |
|
| rmap.h | File | 25.2 KB | 0644 |
|
| rmi.h | File | 12.04 KB | 0644 |
|
| rndis.h | File | 16.86 KB | 0644 |
|
| rodata_test.h | File | 394 B | 0644 |
|
| rolling_buffer.h | File | 2.16 KB | 0644 |
|
| root_dev.h | File | 361 B | 0644 |
|
| rpmb.h | File | 3.16 KB | 0644 |
|
| rpmsg.h | File | 9.46 KB | 0644 |
|
| rseq.h | File | 2.99 KB | 0644 |
|
| rslib.h | File | 3.64 KB | 0644 |
|
| rtc.h | File | 9.32 KB | 0644 |
|
| rtmutex.h | File | 3.38 KB | 0644 |
|
| rtnetlink.h | File | 7.36 KB | 0644 |
|
| rtsx_common.h | File | 846 B | 0644 |
|
| rtsx_pci.h | File | 40.09 KB | 0644 |
|
| rtsx_usb.h | File | 15.51 KB | 0644 |
|
| rv.h | File | 1.56 KB | 0644 |
|
| rw_hint.h | File | 702 B | 0644 |
|
| rwbase_rt.h | File | 1 KB | 0644 |
|
| rwlock.h | File | 4.15 KB | 0644 |
|
| rwlock_api_smp.h | File | 7.85 KB | 0644 |
|
| rwlock_rt.h | File | 3.38 KB | 0644 |
|
| rwlock_types.h | File | 1.77 KB | 0644 |
|
| rwsem.h | File | 8.6 KB | 0644 |
|
| sbitmap.h | File | 17.82 KB | 0644 |
|
| scatterlist.h | File | 21.17 KB | 0644 |
|
| scc.h | File | 2.84 KB | 0644 |
|
| sched.h | File | 64.53 KB | 0644 |
|
| sched_clock.h | File | 1.46 KB | 0644 |
|
| scmi_imx_protocol.h | File | 1.54 KB | 0644 |
|
| scmi_protocol.h | File | 38.75 KB | 0644 |
|
| scpi_protocol.h | File | 2.67 KB | 0644 |
|
| screen_info.h | File | 3.35 KB | 0644 |
|
| scs.h | File | 2.25 KB | 0644 |
|
| sctp.h | File | 23.09 KB | 0644 |
|
| scx200.h | File | 1.82 KB | 0644 |
|
| scx200_gpio.h | File | 2.38 KB | 0644 |
|
| seccomp.h | File | 2.99 KB | 0644 |
|
| seccomp_types.h | File | 834 B | 0644 |
|
| secretmem.h | File | 706 B | 0644 |
|
| securebits.h | File | 239 B | 0644 |
|
| security.h | File | 64.62 KB | 0644 |
|
| sed-opal-key.h | File | 614 B | 0644 |
|
| sed-opal.h | File | 1.95 KB | 0644 |
|
| seg6.h | File | 121 B | 0644 |
|
| seg6_genl.h | File | 136 B | 0644 |
|
| seg6_hmac.h | File | 136 B | 0644 |
|
| seg6_iptunnel.h | File | 148 B | 0644 |
|
| seg6_local.h | File | 100 B | 0644 |
|
| selection.h | File | 1.67 KB | 0644 |
|
| sem.h | File | 515 B | 0644 |
|
| sem_types.h | File | 234 B | 0644 |
|
| semaphore.h | File | 1.58 KB | 0644 |
|
| seq_buf.h | File | 4.24 KB | 0644 |
|
| seq_file.h | File | 10.18 KB | 0644 |
|
| seq_file_net.h | File | 787 B | 0644 |
|
| seqlock.h | File | 37.14 KB | 0644 |
|
| seqlock_api.h | File | 27 B | 0644 |
|
| seqlock_types.h | File | 3.11 KB | 0644 |
|
| serdev.h | File | 10.12 KB | 0644 |
|
| serial.h | File | 1.03 KB | 0644 |
|
| serial_8250.h | File | 7.38 KB | 0644 |
|
| serial_bcm63xx.h | File | 4.73 KB | 0644 |
|
| serial_core.h | File | 39.9 KB | 0644 |
|
| serial_s3c.h | File | 9.54 KB | 0644 |
|
| serial_sci.h | File | 1.62 KB | 0644 |
|
| serio.h | File | 4.41 KB | 0644 |
|
| set_memory.h | File | 2.06 KB | 0644 |
|
| sfp.h | File | 16.54 KB | 0644 |
|
| sh_clk.h | File | 5.96 KB | 0644 |
|
| sh_dma.h | File | 3.47 KB | 0644 |
|
| sh_eth.h | File | 369 B | 0644 |
|
| sh_intc.h | File | 3.63 KB | 0644 |
|
| sh_timer.h | File | 172 B | 0644 |
|
| shdma-base.h | File | 4.27 KB | 0644 |
|
| shm.h | File | 835 B | 0644 |
|
| shmem_fs.h | File | 7.74 KB | 0644 |
|
| shrinker.h | File | 4.87 KB | 0644 |
|
| signal.h | File | 13.79 KB | 0644 |
|
| signal_types.h | File | 1.69 KB | 0644 |
|
| signalfd.h | File | 817 B | 0644 |
|
| siox.h | File | 2.26 KB | 0644 |
|
| siphash.h | File | 5.66 KB | 0644 |
|
| sizes.h | File | 1.68 KB | 0644 |
|
| skb_array.h | File | 5.43 KB | 0644 |
|
| skbuff.h | File | 148.33 KB | 0644 |
|
| skbuff_ref.h | File | 1.74 KB | 0644 |
|
| skmsg.h | File | 13.94 KB | 0644 |
|
| slab.h | File | 37.02 KB | 0644 |
|
| slimbus.h | File | 6.94 KB | 0644 |
|
| sm501-regs.h | File | 11.62 KB | 0644 |
|
| sm501.h | File | 4.02 KB | 0644 |
|
| smc91x.h | File | 1.57 KB | 0644 |
|
| smp.h | File | 8.03 KB | 0644 |
|
| smp_types.h | File | 1.35 KB | 0644 |
|
| smpboot.h | File | 1.68 KB | 0644 |
|
| smsc911x.h | File | 1.63 KB | 0644 |
|
| smscphy.h | File | 3.1 KB | 0644 |
|
| sock_diag.h | File | 2.42 KB | 0644 |
|
| socket.h | File | 15.52 KB | 0644 |
|
| sockptr.h | File | 4.05 KB | 0644 |
|
| softirq.h | File | 29 B | 0644 |
|
| sonet.h | File | 469 B | 0644 |
|
| sony-laptop.h | File | 1.41 KB | 0644 |
|
| sonypi.h | File | 1.71 KB | 0644 |
|
| sort.h | File | 348 B | 0644 |
|
| sound.h | File | 685 B | 0644 |
|
| soundcard.h | File | 1.59 KB | 0644 |
|
| spinlock.h | File | 17.55 KB | 0644 |
|
| spinlock_api.h | File | 28 B | 0644 |
|
| spinlock_api_smp.h | File | 5.23 KB | 0644 |
|
| spinlock_api_up.h | File | 3.38 KB | 0644 |
|
| spinlock_rt.h | File | 4.12 KB | 0644 |
|
| spinlock_types.h | File | 1.78 KB | 0644 |
|
| spinlock_types_raw.h | File | 1.69 KB | 0644 |
|
| spinlock_types_up.h | File | 732 B | 0644 |
|
| spinlock_up.h | File | 2.08 KB | 0644 |
|
| splice.h | File | 3.72 KB | 0644 |
|
| spmi.h | File | 5.85 KB | 0644 |
|
| sprintf.h | File | 1.24 KB | 0644 |
|
| sram.h | File | 437 B | 0644 |
|
| srcu.h | File | 15.35 KB | 0644 |
|
| srcutiny.h | File | 3.15 KB | 0644 |
|
| srcutree.h | File | 10.6 KB | 0644 |
|
| ssbi.h | File | 726 B | 0644 |
|
| stackdepot.h | File | 8.95 KB | 0644 |
|
| stackleak.h | File | 2.36 KB | 0644 |
|
| stackprotector.h | File | 859 B | 0644 |
|
| stacktrace.h | File | 4 KB | 0644 |
|
| start_kernel.h | File | 345 B | 0644 |
|
| stat.h | File | 1.82 KB | 0644 |
|
| statfs.h | File | 1.78 KB | 0644 |
|
| static_call.h | File | 10.66 KB | 0644 |
|
| static_call_types.h | File | 2.74 KB | 0644 |
|
| static_key.h | File | 30 B | 0644 |
|
| stdarg.h | File | 313 B | 0644 |
|
| stddef.h | File | 3.17 KB | 0644 |
|
| stm.h | File | 4.6 KB | 0644 |
|
| stmmac.h | File | 7.79 KB | 0644 |
|
| stmp3xxx_rtc_wdt.h | File | 331 B | 0644 |
|
| stmp_device.h | File | 412 B | 0644 |
|
| stop_machine.h | File | 4.94 KB | 0644 |
|
| string.h | File | 17.88 KB | 0644 |
|
| string_choices.h | File | 2.22 KB | 0644 |
|
| string_helpers.h | File | 3.29 KB | 0644 |
|
| stringhash.h | File | 2.65 KB | 0644 |
|
| stringify.h | File | 395 B | 0644 |
|
| sungem_phy.h | File | 3.97 KB | 0644 |
|
| sunserialcore.h | File | 1.08 KB | 0644 |
|
| sunxi-rsb.h | File | 2.89 KB | 0644 |
|
| surface_acpi_notify.h | File | 1.07 KB | 0644 |
|
| suspend.h | File | 20.63 KB | 0644 |
|
| svga.h | File | 3.75 KB | 0644 |
|
| sw842.h | File | 328 B | 0644 |
|
| swab.h | File | 912 B | 0644 |
|
| swait.h | File | 9.47 KB | 0644 |
|
| swait_api.h | File | 25 B | 0644 |
|
| swap.h | File | 21.47 KB | 0644 |
|
| swap_cgroup.h | File | 1004 B | 0644 |
|
| swap_slots.h | File | 721 B | 0644 |
|
| swapfile.h | File | 450 B | 0644 |
|
| swapops.h | File | 16.33 KB | 0644 |
|
| swiotlb.h | File | 9.09 KB | 0644 |
|
| switchtec.h | File | 10.92 KB | 0644 |
|
| sxgbe_platform.h | File | 1.23 KB | 0644 |
|
| sync_core.h | File | 1.03 KB | 0644 |
|
| sync_file.h | File | 1.57 KB | 0644 |
|
| synclink.h | File | 989 B | 0644 |
|
| sys.h | File | 960 B | 0644 |
|
| sys_soc.h | File | 1.26 KB | 0644 |
|
| syscall_user_dispatch.h | File | 1.31 KB | 0644 |
|
| syscall_user_dispatch_types.h | File | 388 B | 0644 |
|
| syscalls.h | File | 56.4 KB | 0644 |
|
| syscalls_api.h | File | 28 B | 0644 |
|
| syscore_ops.h | File | 633 B | 0644 |
|
| sysctl.h | File | 9.6 KB | 0644 |
|
| sysfb.h | File | 2.87 KB | 0644 |
|
| sysfs.h | File | 24.5 KB | 0644 |
|
| syslog.h | File | 1.29 KB | 0644 |
|
| sysrq.h | File | 1.95 KB | 0644 |
|
| sysv_fs.h | File | 9.03 KB | 0644 |
|
| t10-pi.h | File | 1.85 KB | 0644 |
|
| task_io_accounting.h | File | 1.13 KB | 0644 |
|
| task_io_accounting_ops.h | File | 2.55 KB | 0644 |
|
| task_work.h | File | 1.06 KB | 0644 |
|
| taskstats_kern.h | File | 957 B | 0644 |
|
| tboot.h | File | 3.26 KB | 0644 |
|
| tc.h | File | 3.46 KB | 0644 |
|
| tca6416_keypad.h | File | 683 B | 0644 |
|
| tcp.h | File | 20.67 KB | 0644 |
|
| tee_core.h | File | 9.67 KB | 0644 |
|
| tee_drv.h | File | 8.94 KB | 0644 |
|
| tegra-icc.h | File | 1.86 KB | 0644 |
|
| termios_internal.h | File | 1.48 KB | 0644 |
|
| text-patching.h | File | 349 B | 0644 |
|
| textsearch.h | File | 4.73 KB | 0644 |
|
| textsearch_fsm.h | File | 1.19 KB | 0644 |
|
| tfrc.h | File | 1.68 KB | 0644 |
|
| thermal.h | File | 11.63 KB | 0644 |
|
| thread_info.h | File | 7.75 KB | 0644 |
|
| threads.h | File | 1.31 KB | 0644 |
|
| thunderbolt.h | File | 21.38 KB | 0644 |
|
| ti-emif-sram.h | File | 4.75 KB | 0644 |
|
| ti_wilink_st.h | File | 13.47 KB | 0644 |
|
| tick.h | File | 9.89 KB | 0644 |
|
| tifm.h | File | 4.66 KB | 0644 |
|
| timb_dma.h | File | 1.17 KB | 0644 |
|
| timb_gpio.h | File | 717 B | 0644 |
|
| time.h | File | 3.14 KB | 0644 |
|
| time32.h | File | 1.75 KB | 0644 |
|
| time64.h | File | 4.68 KB | 0644 |
|
| time_namespace.h | File | 4.02 KB | 0644 |
|
| timecounter.h | File | 4.38 KB | 0644 |
|
| timekeeper_internal.h | File | 5.72 KB | 0644 |
|
| timekeeping.h | File | 8.82 KB | 0644 |
|
| timer.h | File | 7.4 KB | 0644 |
|
| timer_types.h | File | 477 B | 0644 |
|
| timerfd.h | File | 508 B | 0644 |
|
| timeriomem-rng.h | File | 432 B | 0644 |
|
| timerqueue.h | File | 1.18 KB | 0644 |
|
| timerqueue_types.h | File | 335 B | 0644 |
|
| timex.h | File | 6.41 KB | 0644 |
|
| tnum.h | File | 4.15 KB | 0644 |
|
| topology.h | File | 7.33 KB | 0644 |
|
| torture.h | File | 4.91 KB | 0644 |
|
| toshiba.h | File | 460 B | 0644 |
|
| tpm.h | File | 14.74 KB | 0644 |
|
| tpm_command.h | File | 847 B | 0644 |
|
| tpm_eventlog.h | File | 6.53 KB | 0644 |
|
| trace.h | File | 2.77 KB | 0644 |
|
| trace_clock.h | File | 667 B | 0644 |
|
| trace_events.h | File | 30.39 KB | 0644 |
|
| trace_recursion.h | File | 5 KB | 0644 |
|
| trace_seq.h | File | 4.52 KB | 0644 |
|
| tracefs.h | File | 3.79 KB | 0644 |
|
| tracepoint-defs.h | File | 2.46 KB | 0644 |
|
| tracepoint.h | File | 20.39 KB | 0644 |
|
| transport_class.h | File | 2.58 KB | 0644 |
|
| ts-nbus.h | File | 532 B | 0644 |
|
| tsacct_kern.h | File | 1.2 KB | 0644 |
|
| tsm.h | File | 3.78 KB | 0644 |
|
| tty.h | File | 17.21 KB | 0644 |
|
| tty_buffer.h | File | 1.29 KB | 0644 |
|
| tty_driver.h | File | 22.2 KB | 0644 |
|
| tty_flip.h | File | 2.68 KB | 0644 |
|
| tty_ldisc.h | File | 10.29 KB | 0644 |
|
| tty_port.h | File | 9.21 KB | 0644 |
|
| turris-omnia-mcu-interface.h | File | 11.13 KB | 0644 |
|
| typecheck.h | File | 782 B | 0644 |
|
| types.h | File | 6.04 KB | 0644 |
|
| u64_stats_sync.h | File | 5.45 KB | 0644 |
|
| u64_stats_sync_api.h | File | 34 B | 0644 |
|
| uacce.h | File | 4.37 KB | 0644 |
|
| uaccess.h | File | 18.83 KB | 0644 |
|
| ubsan.h | File | 307 B | 0644 |
|
| ucs2_string.h | File | 740 B | 0644 |
|
| udp.h | File | 6.09 KB | 0644 |
|
| uidgid.h | File | 4.27 KB | 0644 |
|
| uidgid_types.h | File | 241 B | 0644 |
|
| uio.h | File | 12.13 KB | 0644 |
|
| uio_driver.h | File | 5.25 KB | 0644 |
|
| umh.h | File | 1.82 KB | 0644 |
|
| unaligned.h | File | 3.14 KB | 0644 |
|
| unicode.h | File | 2.05 KB | 0644 |
|
| union_find.h | File | 1.14 KB | 0644 |
|
| units.h | File | 2.88 KB | 0644 |
|
| unroll.h | File | 1.77 KB | 0644 |
|
| uprobes.h | File | 9.44 KB | 0644 |
|
| usb.h | File | 78.94 KB | 0644 |
|
| usb_usual.h | File | 3.58 KB | 0644 |
|
| usbdevice_fs.h | File | 2.18 KB | 0644 |
|
| user-return-notifier.h | File | 1.18 KB | 0644 |
|
| user.h | File | 22 B | 0644 |
|
| user_events.h | File | 1.68 KB | 0644 |
|
| user_namespace.h | File | 6.42 KB | 0644 |
|
| userfaultfd_k.h | File | 13.22 KB | 0644 |
|
| usermode_driver.h | File | 515 B | 0644 |
|
| util_macros.h | File | 2.51 KB | 0644 |
|
| uts.h | File | 388 B | 0644 |
|
| utsname.h | File | 1.8 KB | 0644 |
|
| uuid.h | File | 2.49 KB | 0644 |
|
| vbox_utils.h | File | 1.75 KB | 0644 |
|
| vdpa.h | File | 22.11 KB | 0644 |
|
| verification.h | File | 1.86 KB | 0644 |
|
| vermagic.h | File | 1.24 KB | 0644 |
|
| vexpress.h | File | 297 B | 0644 |
|
| vfio.h | File | 13.34 KB | 0644 |
|
| vfio_pci_core.h | File | 5.59 KB | 0644 |
|
| vfs.h | File | 116 B | 0644 |
|
| vga_switcheroo.h | File | 8.62 KB | 0644 |
|
| vgaarb.h | File | 2.81 KB | 0644 |
|
| vhost_iotlb.h | File | 1.43 KB | 0644 |
|
| via-core.h | File | 6.57 KB | 0644 |
|
| via.h | File | 932 B | 0644 |
|
| via_i2c.h | File | 844 B | 0644 |
|
| videodev2.h | File | 2.7 KB | 0644 |
|
| virtio.h | File | 10.57 KB | 0644 |
|
| virtio_anchor.h | File | 507 B | 0644 |
|
| virtio_byteorder.h | File | 1.46 KB | 0644 |
|
| virtio_caif.h | File | 513 B | 0644 |
|
| virtio_config.h | File | 18.11 KB | 0644 |
|
| virtio_dma_buf.h | File | 1.12 KB | 0644 |
|
| virtio_net.h | File | 6.53 KB | 0644 |
|
| virtio_pci_admin.h | File | 1.47 KB | 0644 |
|
| virtio_pci_legacy.h | File | 1.37 KB | 0644 |
|
| virtio_pci_modern.h | File | 4.39 KB | 0644 |
|
| virtio_ring.h | File | 3.2 KB | 0644 |
|
| virtio_vsock.h | File | 7.44 KB | 0644 |
|
| vm_event_item.h | File | 4.29 KB | 0644 |
|
| vmalloc.h | File | 10.61 KB | 0644 |
|
| vmcore_info.h | File | 3.08 KB | 0644 |
|
| vmpressure.h | File | 1.68 KB | 0644 |
|
| vmstat.h | File | 16.78 KB | 0644 |
|
| vmw_vmci_api.h | File | 2.88 KB | 0644 |
|
| vmw_vmci_defs.h | File | 29.93 KB | 0644 |
|
| vringh.h | File | 9.35 KB | 0644 |
|
| vt.h | File | 611 B | 0644 |
|
| vt_buffer.h | File | 1.13 KB | 0644 |
|
| vt_kern.h | File | 5.32 KB | 0644 |
|
| vtime.h | File | 4.47 KB | 0644 |
|
| w1.h | File | 8.93 KB | 0644 |
|
| wait.h | File | 43.03 KB | 0644 |
|
| wait_api.h | File | 24 B | 0644 |
|
| wait_bit.h | File | 22.51 KB | 0644 |
|
| watch_queue.h | File | 3.83 KB | 0644 |
|
| watchdog.h | File | 8.21 KB | 0644 |
|
| win_minmax.h | File | 831 B | 0644 |
|
| wireless.h | File | 1.56 KB | 0644 |
|
| wkup_m3_ipc.h | File | 1.58 KB | 0644 |
|
| wm97xx.h | File | 10.44 KB | 0644 |
|
| wmi.h | File | 3.36 KB | 0644 |
|
| wordpart.h | File | 1.5 KB | 0644 |
|
| workqueue.h | File | 29.84 KB | 0644 |
|
| workqueue_api.h | File | 29 B | 0644 |
|
| workqueue_types.h | File | 564 B | 0644 |
|
| writeback.h | File | 12.67 KB | 0644 |
|
| ww_mutex.h | File | 13.38 KB | 0644 |
|
| wwan.h | File | 6 KB | 0644 |
|
| xarray.h | File | 58.06 KB | 0644 |
|
| xattr.h | File | 4.5 KB | 0644 |
|
| xxhash.h | File | 8.27 KB | 0644 |
|
| xz.h | File | 15.66 KB | 0644 |
|
| yam.h | File | 2.18 KB | 0644 |
|
| zconf.h | File | 1.73 KB | 0644 |
|
| zlib.h | File | 28.11 KB | 0644 |
|
| zorro.h | File | 3.57 KB | 0644 |
|
| zpool.h | File | 2.84 KB | 0644 |
|
| zsmalloc.h | File | 1.71 KB | 0644 |
|
| zstd.h | File | 22.47 KB | 0644 |
|
| zstd_errors.h | File | 3.09 KB | 0644 |
|
| zstd_lib.h | File | 144.05 KB | 0644 |
|
| zswap.h | File | 1.82 KB | 0644 |
|
| zutil.h | File | 2.73 KB | 0644 |
|