/linux/fs/ |
H A D | file.c | 121 * space if any. This does not copy the file pointers. Called with the files 139 * clear the extra space. Called with the files spinlock held for write. 174 * with slots_wanted > BITS_PER_LONG (embedded instance in files->fdtab in alloc_fdtable() 250 * The files->file_lock should be held on entry, and will be held on exit. 252 static int expand_fdtable(struct files_struct *files, unsigned int nr) in expand_fdtable() argument 253 __releases(files->file_lock) in expand_fdtable() 254 __acquires(files->file_lock) in expand_fdtable() 258 spin_unlock(&files->file_lock); in expand_fdtable() 264 if (atomic_read(&files->count) > 1) in expand_fdtable() 267 spin_lock(&files in expand_fdtable() 288 expand_files(struct files_struct * files,unsigned int nr) expand_files() argument 474 close_files(struct files_struct * files) close_files() argument 506 put_files_struct(struct files_struct * files) put_files_struct() argument 520 struct files_struct * files = tsk->files; exit_files() local 572 struct files_struct *files = current->files; alloc_fd() local 626 __put_unused_fd(struct files_struct * files,unsigned int fd) __put_unused_fd() argument 636 struct files_struct *files = current->files; put_unused_fd() local 654 struct files_struct *files = current->files; fd_install() local 692 file_close_fd_locked(struct files_struct * files,unsigned fd) file_close_fd_locked() argument 713 struct files_struct *files = current->files; close_fd() local 753 __range_close(struct files_struct * files,unsigned int fd,unsigned int max_fd) __range_close() argument 852 struct files_struct *files = current->files; file_close_fd() local 862 do_close_on_exec(struct files_struct * files) do_close_on_exec() argument 989 __fget_files_rcu(struct files_struct * files,unsigned int fd,fmode_t mask) __fget_files_rcu() argument 1065 __fget_files(struct files_struct * files,unsigned int fd,fmode_t mask) __fget_files() argument 1109 struct files_struct *files; fget_task_next() local 1155 struct files_struct *files = current->files; __fget_light() local 1250 struct files_struct *files = current->files; set_close_on_exec() local 1265 do_dup2(struct files_struct * files,struct file * file,unsigned fd,unsigned flags) do_dup2() argument 1321 struct files_struct *files = current->files; replace_fd() local 1400 struct files_struct *files = current->files; ksys_dup3() local 1438 struct files_struct *files = current->files; SYSCALL_DEFINE2() local 1483 iterate_fd(struct files_struct * files,unsigned n,int (* f)(const void *,struct file *,unsigned),const void * p) iterate_fd() argument [all...] |
/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-find-errors.sh | 4 # Invoke a text editor on all console.log files for all runs with diagnostics, 5 # that is, on all such files having a console.log.diags counterpart. 30 files= 38 files="$files $i.diags $i" 42 files="$files $i.diags $i" 45 if test -n "$files" 47 $editor $files 59 files [all...] |
/linux/include/linux/ |
H A D | fdtable.h | 63 #define rcu_dereference_check_fdtable(files, fdtfd) \ argument 64 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock)) 66 #define files_fdtable(files) \ argument 67 rcu_dereference_check_fdtable((files), (files)->fdt) 72 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument 74 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in files_lookup_fd_raw() 88 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument 90 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked() 92 return files_lookup_fd_raw(files, f in files_lookup_fd_locked() 95 close_on_exec(unsigned int fd,const struct files_struct * files) close_on_exec() argument [all...] |
/linux/scripts/ |
H A D | Makefile.clean | 24 # build a list of files to remove, usually relative to the current 27 __clean-files := \ 28 $(clean-files) $(targets) $(hostprogs) $(userprogs) \ 34 __clean-files := $(filter-out $(no-clean-files), $(__clean-files)) 36 __clean-files := $(wildcard $(addprefix $(obj)/, $(__clean-files))) 43 cmd_clean = printf '$(obj)/%s ' $(patsubst $(obj)/%,%,$(__clean-files)) | xargs rm -rf 46 ifneq ($(strip $(__clean-files)),) [all...] |
H A D | misc-check | 6 # Detect files that are tracked but ignored by git. 8 git -C "${srctree:-.}" ls-files -i -c --exclude-per-directory=.gitignore 2>/dev/null | 9 sed 's/$/: warning: ignored by one of the .gitignore files/' >&2 21 # <linux/export.h> are orthogonal. <linux/module.h> should be included by files 28 # EXPORT_SYMBOL(). Worse, it is included by most C files, which means, most C 29 # files end up including <linux/export.h>, even though only some of them 33 # Before fixing such headers, we must ensure that C files using EXPORT_SYMBOL() 34 # include <linux/export.h> directly, since many C files currently rely on 39 # The problem is simple - the warned files use EXPORT_SYMBOL(), but do not 48 git -C "${srctree:-.}" grep --files [all...] |
H A D | make_fit.py | 8 """Build a FIT containing a lot of devicetree files 15 Creates a FIT containing the supplied kernel and a set of devicetree files, 28 looks at the .cmd files produced by the kernel build. 66 epilog = 'Build a FIT from a directory tree containing .dtb files' 87 help='Specifies the devicetree files to process') 150 for model, compat, files in entries: 155 fsw.property('fdt', bytes(''.join(f'fdt-{x}\x00' for x in files), "ascii")) 225 files: list of filenames corresponding to the DTB 243 files = cmd.split() 244 files [all...] |
H A D | checktransupdate.py | 13 This will print all the files that need to be updated or translated in the zh_CN locale. 178 """List all files with the specified suffix in the folder and its subfolders""" 179 files = [] 187 # list all files and folders 194 files.append(ab_item) 196 return files 243 help="Locale to check when files are not specified", 250 help="Print files that do not have translations", 265 "files", nargs="*", help="Files to check, if not specified, check all files" [all...] |
H A D | leaking_addresses.pl | 10 # Use --debug to output path before parsing, this is useful to find files that 14 # When the system is idle it is likely that most files under /proc/PID will be 18 # files that leak addresses but were not present during a scan. For these two 103 scanning binary files). 542 my @files = readdir(DIR); 545 foreach my $file (@files) { 580 my ($total, $dmesg, $paths, $files) = parse_raw_file($file); 589 squash_by($files, 'filename'); 619 my %files; # Unique filenames containing leaks. 632 cache_filename(\%files, [all...] |
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_debugfs.c | 75 static const struct intel_gt_debugfs_file files[] = { in gt_debugfs_register() local 80 intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), gt); in gt_debugfs_register() 106 const struct intel_gt_debugfs_file *files, in intel_gt_debugfs_register_files() argument 110 umode_t mode = files->fops->write ? 0644 : 0444; in intel_gt_debugfs_register_files() 112 if (!files->eval || files->eval(data)) in intel_gt_debugfs_register_files() 113 debugfs_create_file(files->name, in intel_gt_debugfs_register_files() 115 files->fops); in intel_gt_debugfs_register_files() 117 files in intel_gt_debugfs_register_files() [all...] |
/linux/io_uring/ |
H A D | openclose.c | 228 struct files_struct *files = current->files; in io_close() local 238 spin_lock(&files->file_lock); in io_close() 239 file = files_lookup_fd_locked(files, close->fd); in io_close() 241 spin_unlock(&files->file_lock); in io_close() 247 spin_unlock(&files->file_lock); in io_close() 251 file = file_close_fd_locked(files, close->fd); in io_close() 252 spin_unlock(&files->file_lock); in io_close() 257 ret = filp_close(file, current->files); in io_close() 333 static int io_pipe_fixed(struct io_kiocb *req, struct file **files, in io_pipe_fixed() argument 381 io_pipe_fd(struct io_kiocb * req,struct file ** files) io_pipe_fd() argument 413 struct file *files[2]; io_pipe() local [all...] |
/linux/ |
H A D | .gitignore | 3 # NOTE! Don't add files that are generated in specific 7 # NOTE! Please use 'git ls-files -i -c --exclude-per-directory=.gitignore' 9 # any tracked files which get ignored after the change. 61 # Top-level generic files 100 # pacman files (make pacman-pkg) 106 # We don't want to ignore the following even if they are dot-files 121 # Generated include files 130 # quilt's files 134 # ctags files 139 # cscope files [all...] |
/linux/tools/perf/util/ |
H A D | data.c | 23 static void close_dir(struct perf_data_file *files, int nr) in close_dir() argument 26 close(files[nr].fd); in close_dir() 27 zfree(&files[nr].path); in close_dir() 29 free(files); in close_dir() 34 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir() 40 struct perf_data_file *files = NULL; in perf_data__create_dir() local 46 files = zalloc(nr * sizeof(*files)); in perf_data__create_dir() 47 if (!files) in perf_data__create_dir() 51 struct perf_data_file *file = &files[ in perf_data__create_dir() 90 struct perf_data_file *files = NULL; perf_data__open_dir() local [all...] |
/linux/Documentation/admin-guide/ |
H A D | abi.rst | 20 ABI files 26 abi-stable-files 27 abi-testing-files 28 abi-obsolete-files 29 abi-removed-files
|
/linux/include/drm/ |
H A D | drm_debugfs.h | 13 * copy of this software and associated documentation files (the "Software"), 142 void drm_debugfs_create_files(const struct drm_info_list *files, 145 int drm_debugfs_remove_files(const struct drm_info_list *files, int count, 152 const struct drm_debugfs_info *files, int count); 160 static inline void drm_debugfs_create_files(const struct drm_info_list *files, in drm_debugfs_create_files() argument 165 static inline int drm_debugfs_remove_files(const struct drm_info_list *files, in drm_debugfs_remove_files() argument 178 const struct drm_debugfs_info *files, in drm_debugfs_add_files() argument
|
/linux/Documentation/dev-tools/ |
H A D | gcov.rst | 13 This will create source code files annotated with execution counts 54 To enable profiling for specific files or directories, add a line 61 - For all files in one directory:: 65 To exclude files from being profiled even when CONFIG_GCOV_PROFILE_ALL 74 Only files which are linked to the main kernel image or are compiled as 92 The gcov kernel support creates the following files in debugfs: 95 Parent directory for all gcov-related files. 143 gcc version used for kernel build. Also the following files need to be 147 - all C source files + headers 150 - all C source files [all...] |
/linux/fs/jffs2/ |
H A D | LICENCE | 1 The files in this directory and elsewhere which refer to this LICENCE 20 As a special exception, if other files instantiate templates or use 21 macros or inline functions from these files, or you compile these 22 files and link them with other works to produce a work based on these 23 files, these files do not by themselves cause the resulting work to be 25 these files must still be made available in accordance with section (3)
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_debugfs.c | 5 * a copy of this software and associated documentation files (the 100 struct drm_info_list *files, in qxl_debugfs_add_files() argument 106 if (qdev->debugfs[i].files == files) { in qxl_debugfs_add_files() 118 qdev->debugfs[qdev->debugfs_count].files = files; in qxl_debugfs_add_files() 122 drm_debugfs_create_files(files, nfiles, in qxl_debugfs_add_files()
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-driver-mlxreg-io | 8 The files are read only. 15 Description: These files show with which CPLD versions have been burned 18 The files are read only. 28 The files are read only. 34 Description: These files show with which CPLD versions have been burned 37 The files are read only. 43 Description: These files enable and disable the access to the JTAG domain. 66 Description: These files allow asserting system power cycling, switching 79 The files are write only. 93 Description: These files sho [all...] |
/linux/scripts/package/debian/ |
H A D | rules | 38 mk-files = $(patsubst binary-%,debian/%.files,$1) 59 $(Q)dh_gencontrol $(DH_OPTIONS) -- -f$(call mk-files,$@) 66 $(Q)truncate -s0 $(call mk-files,$@) 73 $(Q)cat $(call mk-files,$^) > debian/files 85 $(Q)rm -rf debian/deb-env.vars* debian/*.files
|
/linux/tools/testing/selftests/x86/ |
H A D | Makefile | 114 # header files as an input to the compiler invocation. 115 define extra-files 120 $(eval $(call extra-files,sysret_ss_attrs_64,thunks.S)) 121 $(eval $(call extra-files,ptrace_syscall_32,raw_syscall_helper_32.S)) 122 $(eval $(call extra-files,test_syscall_vdso_32,thunks_32.S)) 123 $(eval $(call extra-files,fsgsbase_restore_64,clang_helpers_64.S)) 124 $(eval $(call extra-files,fsgsbase_restore_32,clang_helpers_32.S)) 125 $(eval $(call extra-files,sysret_rip_64,clang_helpers_64.S))
|
/linux/Documentation/admin-guide/mm/damon/ |
H A D | usage.rst | 19 features by reading from and writing to special sysfs files. Therefore, 21 reads/writes the sysfs files instead of you. The `DAMON user space tool 36 creates multiple directories and files under its sysfs directory, 38 from the files under the directory. 53 The files hierarchy of DAMON sysfs interface is shown below. In the below 55 directory is having ``/`` suffix, and files in each directory are separated by 104 has one directory named ``admin``. The directory contains the files for 113 Under the ``admin`` directory, one directory, ``kdamonds``, which has files for 126 In each kdamond directory, three files (``state``, ``pid`` and ``refresh_ms``) 136 - ``commit``: Read the user inputs in the sysfs files excep [all...] |
/linux/Documentation/filesystems/ |
H A D | hfs.rst | 26 used for creating new files. Default values: '????'. 29 Specifies the user/group that owns all files on the filesystems. 33 Specifies the umask used for all files , all directories or all 34 files and directories. Defaults to the umask of the mounting process. 58 and gid of files. 59 * You can't create hard- or symlinks, device files, sockets or FIFOs. 62 non-standard forks are represented as hidden additional files in the normal 66 * You can't create, delete or rename resource forks of files or the 70 * Copying files to a different filesystem will loose those attributes
|
H A D | isofs.rst | 10 gid=nnn All files in the partition will be in group nnn. 11 uid=nnn All files in the partition will be owned by user id nnn. 39 mode=xxx Sets the permissions on files to xxx unless Rock Ridge 43 overriderockperm Set permissions on files and directories according to 48 hide Completely strip hidden files from the file system. 49 showassoc Show files marked with the 'associated' bit 50 unhide Deprecated; showing hidden files is now default;
|
H A D | ecryptfs.rst | 8 For documentation, please see the files in the doc/ subdirectory. For 36 eCryptfs, you should copy the files to an unencrypted location and 37 then copy the files back into the new eCryptfs mount to migrate the 38 files. 45 files (i.e., /root/crypt). Then, create the mount point directory 77 or (2) directories containing files only created by eCryptfs. If you 78 mount a directory that has pre-existing files not created by eCryptfs,
|
/linux/tools/testing/selftests/pstore/ |
H A D | pstore_post_reboot_tests | 40 prlog -n "Checking dmesg files exist in pstore filesystem ... " 43 prlog -n "Checking console files exist in pstore filesystem ... " 46 prlog -n "Checking pmsg files exist in pstore filesystem ... " 49 prlog -n "Checking dmesg files contain oops end marker" 53 files=`ls dmesg-${backend}-*` 54 operate_files $? "$files" grep_end_trace 76 prlog -n "Removing all files in pstore filesystem " 77 files=`ls *-${backend}-*` 78 operate_files $? "$files" rm
|