Home
last modified time | relevance | path

Searched refs:file (Results 3476 - 3500 of 14508) sorted by relevance

1...<<131132133134135136137138139140>>...581

/kernel/linux/linux-6.6/drivers/char/hw_random/
H A Ds390-trng.c49 /* file io functions */
51 static int trng_open(struct inode *inode, struct file *file) in trng_open() argument
53 return nonseekable_open(inode, file); in trng_open()
56 static ssize_t trng_read(struct file *file, char __user *ubuf, in trng_read() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c13 static ssize_t ixgbe_dbg_common_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_common_ops_read()
43 * @filp: the opened file
46 * @ppos: file position offset
48 static ssize_t ixgbe_dbg_reg_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_reg_ops_read()
57 * @filp: the opened file
60 * @ppos: file position offset
62 static ssize_t ixgbe_dbg_reg_ops_write(struct file *filp, in ixgbe_dbg_reg_ops_write()
126 * @filp: the opened file
129 * @ppos: file position offset
131 static ssize_t ixgbe_dbg_netdev_ops_read(struct file *fil
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vgem/
H A Dvgem_fence.c127 struct drm_file *file) in vgem_fence_attach_ioctl()
130 struct vgem_file *vfile = file->driver_priv; in vgem_fence_attach_ioctl()
143 obj = drm_gem_object_lookup(file, arg->handle); in vgem_fence_attach_ioctl()
207 struct drm_file *file) in vgem_fence_signal_ioctl()
209 struct vgem_file *vfile = file->driver_priv; in vgem_fence_signal_ioctl()
125 vgem_fence_attach_ioctl(struct drm_device *dev, void *data, struct drm_file *file) vgem_fence_attach_ioctl() argument
205 vgem_fence_signal_ioctl(struct drm_device *dev, void *data, struct drm_file *file) vgem_fence_signal_ioctl() argument
/kernel/linux/linux-6.6/net/qrtr/
H A Dtun.c31 static int qrtr_tun_open(struct inode *inode, struct file *filp) in qrtr_tun_open()
61 struct file *filp = iocb->ki_filp; in qrtr_tun_read_iter()
87 struct file *filp = iocb->ki_filp; in qrtr_tun_write_iter()
114 static __poll_t qrtr_tun_poll(struct file *filp, poll_table *wait) in qrtr_tun_poll()
127 static int qrtr_tun_release(struct inode *inode, struct file *filp) in qrtr_tun_release()
/third_party/cJSON/tests/
H A Djson_patch_tests.c34 char *file = NULL; in parse_test_file() local
37 file = read_file(filename); in parse_test_file()
38 TEST_ASSERT_NOT_NULL_MESSAGE(file, "Failed to read file."); in parse_test_file()
40 json = cJSON_Parse(file); in parse_test_file()
44 free(file); in parse_test_file()
/third_party/libsnd/tests/
H A Dstdin_test.c141 SNDFILE *file ; in stdin_test() local
154 if ((file = sf_open_fd (fileno (stdin), SFM_READ, &sfinfo, SF_TRUE)) == NULL) in stdin_test()
161 err = sf_error (file) ; in stdin_test()
188 while ((k = (int) sf_read_short (file, data + total, BUFFER_LEN - total)) > 0) in stdin_test()
202 sf_close (file) ; in stdin_test()
/third_party/ltp/testcases/kernel/fs/doio/
H A Drwtest16 # otherwise, applies only to this software file. Patent licenses, if
79 file locking) is forced.
198 # force file locking with > 1 process
275 # check if PLACES is set; if so, put one file in each place
281 # put one file in each of $PLACES
282 Files="25%:rwtest.file"
300 file=${f##*:}
301 if [ ! -f "$file" ]
303 Files_To_Remove="$Files_To_Remove $file"
306 dir=$(dirname $file)
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_fs_saturate_propagation.cpp30 /** @file brw_fs_saturate_propagation.cpp
58 inst->dst.file != VGRF || in opt_saturate_propagation_local()
60 inst->src[0].file != VGRF || in opt_saturate_propagation_local()
95 if (scan_inst->src[i].file == IMM) { in opt_saturate_propagation_local()
104 if (scan_inst->src[1].file == IMM) { in opt_saturate_propagation_local()
127 if (scan_inst->src[i].file == VGRF && in opt_saturate_propagation_local()
/third_party/ltp/testcases/kernel/input/
H A Dinput_helper.c272 FILE *file; in check_device() local
275 file = fopen("/proc/bus/input/devices", "r"); in check_device()
276 if (!file) in check_device()
279 while (fgets(line, 256, file)) { in check_device()
284 fclose(file); in check_device()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Djson_h_generator.py9 # This script generates a .hpp file that can be included in an application
70 # This is an ordered list of sections in the header file.
161 write(copyright, file=self.outFile)
162 write(predefinedCode, file=self.outFile)
164 write(self.printPrototypes(), file=self.outFile)
165 write("void dumpPNextChain(const void* pNext);\n", file=self.outFile)
183 write('\n'.join(contents), file=self.outFile)
/third_party/skia/third_party/externals/spirv-tools/utils/
H A Dcheck_copyright.py6 # you may not use this file except in compliance with the License.
59 you may not use this file except in compliance with the License.
118 in a file. The license notice follows it. Both are prefixed on each line
125 for file in filtered_descendants(glob):
133 for line in fileinput.input(file, inplace=1):
152 # notice. So just emit it like the rest of the file.
171 Returns the total number of file names printed.
174 for file in filtered_descendants(glob):
179 with open(file, encoding='utf-8') as contents:
189 message = file
[all...]
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
H A Doptimization.go4 // you may not use this file except in compliance with the License.
31 for _, file := range t.files {
32 file := file
36 for idx, tc := range file.tcm {
39 o.createGroups(file)
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/
H A Dcheck_copyright.py6 # you may not use this file except in compliance with the License.
59 you may not use this file except in compliance with the License.
118 in a file. The license notice follows it. Both are prefixed on each line
125 for file in filtered_descendants(glob):
133 for line in fileinput.input(file, inplace=1):
152 # notice. So just emit it like the rest of the file.
171 Returns the total number of file names printed.
174 for file in filtered_descendants(glob):
179 with open(file, encoding='utf-8') as contents:
189 message = file
[all...]
/third_party/skia/third_party/externals/d3d12allocator/src/
H A DCommon.cpp27 std::ifstream file(fileName, std::ios::ate | std::ios::binary); in ReadFile()
28 assert(file.is_open()); in ReadFile()
29 size_t fileSize = (size_t)file.tellg(); in ReadFile()
33 file.seekg(0); in ReadFile()
34 file.read(out.data(), fileSize); in ReadFile()
/third_party/toybox/toys/other/
H A Dvmstat.c20 cached, kilobytes swapped in and out per second, file disk blocks input and
51 char *p = p, *name = name, *file = NULL; in get_vmstat_proc() local
55 // Strings starting with / are the file to find next entries in in get_vmstat_proc()
63 free(file); in get_vmstat_proc()
64 file = xreadfile(name = vmstuff[i], 0, 0); in get_vmstat_proc()
67 } else p = strafter(file, vmstuff[i]); in get_vmstat_proc()
72 free(file); in get_vmstat_proc()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_bootstrap_unittest.cc47 #include <google/protobuf/testing/file.h>
48 #include <google/protobuf/testing/file.h>
90 << "Generator failed to generate file: " << virtual_filename; in ExpectFileMatches()
111 "Then add this file to your CL."; in ExpectFileMatches()
136 // We need a mapping from the actual file to virtual and actual path in TEST()
157 const FileDescriptor* file = in TEST() local
159 ASSERT_TRUE(file != nullptr) in TEST()
160 << "Can't import file " << file_parameter[0] + std::string(".proto") in TEST()
170 ASSERT_TRUE(generator.Generate(file, file_parameter[1], &context, &error)); in TEST()
/third_party/python/Lib/distutils/
H A Dextension.py73 any extra options to pass to SWIG if a source file has the .i
143 """Reads a Setup file and returns Extension instances."""
150 # First pass over the file to gather "VAR = VALUE" assignments.
155 file = TextFile(filename,
162 line = file.readline()
169 file.warn("'%s' lines not handled yet" % line)
230 # append a .o file to extra_objects only if it
235 file.warn("unrecognized argument '%s'" % word)
239 file.close()
/third_party/spirv-tools/utils/
H A Dcheck_copyright.py6 # you may not use this file except in compliance with the License.
78 you may not use this file except in compliance with the License.
137 in a file. The license notice follows it. Both are prefixed on each line
144 for file in filtered_descendants(glob):
152 for line in fileinput.input(file, inplace=1):
171 # notice. So just emit it like the rest of the file.
190 Returns the total number of file names printed.
193 for file in filtered_descendants(glob):
198 with open(file, encoding='utf-8') as contents:
208 message = file
[all...]
/kernel/linux/linux-6.6/fs/
H A Dnamei.c35 #include <linux/file.h>
89 * file does succeed in both HP-UX and SunOs, but not in Solaris
385 * Used to check for read/write/execute permissions on a file.
478 * Separate out file-system wide checks from inode-specific permission checks.
515 * Nobody gets write access to an immutable file. in inode_permission()
650 * Rename can sometimes move a file or directory outside of a bind
910 * resolved file was inside the root at some point). in complete_walk()
1138 * - inode is not a regular file
1217 * @inode: the inode of the file to open
1219 * Block an O_CREAT open of a FIFO (or a regular file) whe
3340 atomic_open(struct nameidata *nd, struct dentry *dentry, struct file *file, int open_flag, umode_t mode) atomic_open() argument
3395 lookup_open(struct nameidata *nd, struct file *file, const struct open_flags *op, bool got_write) lookup_open() argument
3506 open_last_lookups(struct nameidata *nd, struct file *file, const struct open_flags *op) open_last_lookups() argument
3590 do_open(struct nameidata *nd, struct file *file, const struct open_flags *op) do_open() argument
3663 vfs_tmpfile(struct mnt_idmap *idmap, const struct path *parentpath, struct file *file, umode_t mode) vfs_tmpfile() argument
3720 struct file *file; kernel_tmpfile_open() local
3736 do_tmpfile(struct nameidata *nd, unsigned flags, const struct open_flags *op, struct file *file) do_tmpfile() argument
3759 do_o_path(struct nameidata *nd, unsigned flags, struct file *file) do_o_path() argument
3774 struct file *file; path_openat() local
3831 struct file *file; do_file_open_root() local
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/atmel/
H A Datmel-isc-base.c936 static int isc_querycap(struct file *file, void *priv, in isc_querycap() argument
939 struct isc_device *isc = video_drvdata(file); in isc_querycap()
949 static int isc_enum_fmt_vid_cap(struct file *file, void *priv, in isc_enum_fmt_vid_cap() argument
979 static int isc_g_fmt_vid_cap(struct file *file, void *priv, in isc_g_fmt_vid_cap() argument
982 struct isc_device *isc = video_drvdata(file); in isc_g_fmt_vid_cap()
1422 static int isc_s_fmt_vid_cap(struct file *file, voi argument
1433 isc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) isc_try_fmt_vid_cap() argument
1441 isc_enum_input(struct file *file, void *priv, struct v4l2_input *inp) isc_enum_input() argument
1454 isc_g_input(struct file *file, void *priv, unsigned int *i) isc_g_input() argument
1461 isc_s_input(struct file *file, void *priv, unsigned int i) isc_s_input() argument
1469 isc_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a) isc_g_parm() argument
1476 isc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) isc_s_parm() argument
1483 isc_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize) isc_enum_framesizes() argument
1518 isc_enum_frameintervals(struct file *file, void *fh, struct v4l2_frmivalenum *fival) isc_enum_frameintervals() argument
1585 isc_open(struct file *file) isc_open() argument
1618 isc_release(struct file *file) isc_release() argument
[all...]
/kernel/linux/linux-6.6/security/selinux/
H A Dhooks.c5 * This file contains the SELinux hook function implementations.
44 #include <linux/file.h>
790 * sets the label used on all file below the mountpoint, and will set in selinux_set_mnt_opts()
1474 * this is can be hit on boot when a file is accessed in inode_doinit_with_dentry()
1530 * This can be hit on boot when a file is accessed in inode_doinit_with_dentry()
1705 /* Same as path_has_perm, but uses the inode from the file struct. */
1707 struct file *file, in file_path_has_perm()
1713 ad.u.file = file; in file_path_has_perm()
1706 file_path_has_perm(const struct cred *cred, struct file *file, u32 av) file_path_has_perm() argument
1729 file_has_perm(const struct cred *cred, struct file *file, u32 av) file_has_perm() argument
1979 file_to_av(const struct file *file) file_to_av() argument
2005 open_file_to_av(struct file *file) open_file_to_av() argument
2052 selinux_binder_transfer_file(const struct cred *from, const struct cred *to, const struct file *file) selinux_binder_transfer_file() argument
2400 match_file(const void *p, struct file *file, unsigned fd) match_file() argument
2409 struct file *file, *devnull = NULL; flush_unauthorized_files() local
3597 selinux_revalidate_file_permission(struct file *file, int mask) selinux_revalidate_file_permission() argument
3610 selinux_file_permission(struct file *file, int mask) selinux_file_permission() argument
3630 selinux_file_alloc_security(struct file *file) selinux_file_alloc_security() argument
3645 ioctl_has_perm(const struct cred *cred, struct file *file, u32 requested, u16 cmd) ioctl_has_perm() argument
3682 selinux_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg) selinux_file_ioctl() argument
3729 selinux_file_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg) selinux_file_ioctl_compat() argument
3758 file_map_prot_check(struct file *file, unsigned long prot, int shared) file_map_prot_check() argument
3809 selinux_mmap_file(struct file *file, unsigned long reqprot __always_unused, unsigned long prot, unsigned long flags) selinux_mmap_file() argument
3863 selinux_file_lock(struct file *file, unsigned int cmd) selinux_file_lock() argument
3870 selinux_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg) selinux_file_fcntl() argument
3910 selinux_file_set_fowner(struct file *file) selinux_file_set_fowner() argument
3921 struct file *file; selinux_file_send_sigiotask() local
3940 selinux_file_receive(struct file *file) selinux_file_receive() argument
3947 selinux_file_open(struct file *file) selinux_file_open() argument
4068 selinux_kernel_module_from_file(struct file *file) selinux_kernel_module_from_file() argument
4098 selinux_kernel_read_file(struct file *file, enum kernel_read_file_id id, bool contents) selinux_kernel_read_file() argument
6771 bpf_fd_pass(const struct file *file, u32 sid) bpf_fd_pass() argument
6970 struct file *file = ioucmd->file; selinux_uring_cmd() local
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dmemory_collector_impl.cpp4 * you may not use this file except in compliance with the License.
91 std::ofstream file; in WriteProcessMemoryToFile() local
92 file.open(filePath.c_str(), std::ios::out | std::ios::trunc); in WriteProcessMemoryToFile()
93 if (!file.is_open()) { in WriteProcessMemoryToFile()
98 file << "pid" << '\t' << "pname" << '\t' << "rss(KB)" << '\t' << in WriteProcessMemoryToFile()
102 file << processMem.pid << '\t' << processMem.name << '\t' << processMem.rss << '\t' << in WriteProcessMemoryToFile()
106 file.close(); in WriteProcessMemoryToFile()
112 std::ofstream file; in WriteAIProcessMemToFile() local
113 file.open(filePath.c_str(), std::ios::out | std::ios::trunc); in WriteAIProcessMemToFile()
114 if (!file in WriteAIProcessMemToFile()
[all...]
/kernel/linux/linux-5.10/fs/ceph/
H A Dsuper.h71 * the file. Delay a minimum amount of time, even if we send a cap
391 int i_nr_by_mode[CEPH_FILE_MODE_BITS]; /* open file counts */
398 u64 i_max_size; /* max file size authorized by mds */
580 #define CEPH_I_ERROR_FILELOCK (1 << 10) /* have seen file lock errors */
762 * we keep buffered readdir results attached to file->private_data
846 * A "snap realm" describes a subset of the file hierarchy sharing
1115 extern int ceph_fsync(struct file *file, loff_t start, loff_t end,
1153 extern int ceph_get_caps(struct file *filp, int need, int want,
1166 extern int ceph_mmap(struct file *fil
[all...]
/kernel/linux/linux-5.10/fs/
H A Dxattr.c13 #include <linux/file.h>
598 if (!f.file) in SYSCALL_DEFINE5()
600 audit_file(f.file); in SYSCALL_DEFINE5()
601 error = mnt_want_write_file(f.file); in SYSCALL_DEFINE5()
603 error = setxattr(f.file->f_path.dentry, name, value, size, flags); in SYSCALL_DEFINE5()
604 mnt_drop_write_file(f.file); in SYSCALL_DEFINE5()
643 /* The file system tried to returned a value bigger in getxattr()
690 if (!f.file) in SYSCALL_DEFINE4()
692 audit_file(f.file); in SYSCALL_DEFINE4()
693 error = getxattr(f.file in SYSCALL_DEFINE4()
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dfile.c3 * linux/fs/ext4/file.c
12 * linux/fs/minix/file.c
16 * ext4 fs regular file handling primitives
18 * 64-bit file support on 64-bit platforms by Jakub Jelinek
44 * being misaligned, or due to the file not supporting DIO at all), filesystems
150 static ssize_t ext4_file_splice_read(struct file *in, loff_t *ppos, in ext4_file_splice_read()
166 static int ext4_release_file(struct inode *inode, struct file *filp) in ext4_release_file()
257 * If we have encountered a bitmap-format file, the size limit in ext4_generic_write_checks()
389 * uninitialized blocks in a file even if we didn't succeed in writing in ext4_dio_write_end_io()
391 * expanding the file s in ext4_dio_write_end_io()
425 struct file *file = iocb->ki_filp; ext4_dio_write_checks() local
782 ext4_file_mmap(struct file *file, struct vm_area_struct *vma) ext4_file_mmap() argument
898 ext4_llseek(struct file *file, loff_t offset, int whence) ext4_llseek() argument
[all...]

Completed in 29 milliseconds

1...<<131132133134135136137138139140>>...581