| /kernel/linux/linux-6.6/include/linux/lockd/ |
| H A D | lockd.h | 5 * General-purpose lockd include file. 131 struct file_lock *b_lock; /* local file lock */ 152 * This struct describes a file held open by lockd on behalf of 157 struct nfs_fh f_handle; /* NFS file handle */ 158 struct file * f_file[2]; /* VFS file pointers, 178 struct list_head b_flist; /* linked list (per file) */ 185 struct nlm_file * b_file; /* file in question */ 310 static inline struct file *nlmsvc_file_file(struct nlm_file *file) in nlmsvc_file_file() argument 316 nlmsvc_file_inode(struct nlm_file *file) nlmsvc_file_inode() argument [all...] |
| /kernel/linux/linux-6.6/drivers/tty/serial/ |
| H A D | kgdb_nmi.c | 270 static int kgdb_nmi_tty_open(struct tty_struct *tty, struct file *file) in kgdb_nmi_tty_open() argument 273 unsigned int mode = file->f_flags & O_ACCMODE; in kgdb_nmi_tty_open() 276 ret = tty_port_open(&priv->port, tty, file); in kgdb_nmi_tty_open() 283 static void kgdb_nmi_tty_close(struct tty_struct *tty, struct file *file) in kgdb_nmi_tty_close() argument 286 unsigned int mode = file->f_flags & O_ACCMODE; in kgdb_nmi_tty_close() 291 tty_port_close(&priv->port, tty, file); in kgdb_nmi_tty_close()
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
| H A D | fb_defio.c | 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file COPYING in the main directory of this archive 122 int fb_deferred_io_fsync(struct file *file, loff_t start, loff_t end, int datasync) in fb_deferred_io_fsync() argument 124 struct fb_info *info = file->private_data; in fb_deferred_io_fsync() 125 struct inode *inode = file_inode(file); in fb_deferred_io_fsync() 126 int err = file_write_and_wait_range(file, start, end); in fb_deferred_io_fsync() 302 struct file *file) in fb_deferred_io_open() 306 file in fb_deferred_io_open() 300 fb_deferred_io_open(struct fb_info *info, struct inode *inode, struct file *file) fb_deferred_io_open() argument [all...] |
| /kernel/linux/linux-6.6/drivers/char/ |
| H A D | nwflash.c | 10 * - use *ppos as the file position, not file->f_pos. 96 static long flash_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in flash_ioctl() 123 static ssize_t flash_read(struct file *file, char __user *buf, size_t size, in flash_read() argument 143 static ssize_t flash_write(struct file *file, const char __user *buf, in flash_write() argument 269 * also note that seeking relative to the "end of file" isn't supported: 272 static loff_t flash_llseek(struct file *file, loff_ argument [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
| H A D | msm_rd.c | 24 * do anything if userspace doesn't have the debugfs file open. 133 static ssize_t rd_read(struct file *file, char __user *buf, in rd_read() argument 136 struct msm_rd_state *rd = file->private_data; in rd_read() 170 static int rd_open(struct inode *inode, struct file *file) in rd_open() argument 191 file->private_data = rd; in rd_open() 215 static int rd_release(struct inode *inode, struct file *file) in rd_release() argument
|
| /kernel/linux/linux-6.6/tools/perf/tests/ |
| H A D | dso-data.c | 120 char *file = test_file(TEST_FILE_SIZE); in test__dso_data() local 123 TEST_ASSERT_VAL("No test file", file); in test__dso_data() 127 dso = dso__new((const char *)file); in test__dso_data() 173 unlink(file); in test__dso_data() 212 char *file; in dsos__create() local 214 file = test_file(size); in dsos__create() 215 TEST_ASSERT_VAL("failed to get dso file", file); in dsos__create() 217 dsos[i] = dso__new(file); in dsos__create() [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| H A D | vmtest.sh | 84 # URLS contain the mapping from file names to URLs where 95 local file="$1" 97 if [[ ! -v URLS[$file] ]]; then 98 echo "$file not found" >&2 102 echo "Downloading $file..." >&2 103 curl -Lsf "${URLS[$file]}" "${@:2}" 109 for file in "${!URLS[@]}"; do 110 if [[ $file =~ ^"${ARCH}"/libbpf-vmtest-rootfs-(.*)\.tar\.zst$ ]]; then 195 # Have a default value in the exit status file 252 -drive file [all...] |
| /kernel/linux/linux-6.6/kernel/trace/ |
| H A D | trace_dynevent.c | 224 static int dyn_event_open(struct inode *inode, struct file *file) in dyn_event_open() argument 232 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in dyn_event_open() 238 return seq_open(file, &dyn_event_seq_op); in dyn_event_open() 241 static ssize_t dyn_event_write(struct file *file, const char __user *buffer, in dyn_event_write() argument 244 return trace_parse_run_command(file, buffer, count, ppos, in dyn_event_write()
|
| H A D | trace_stack.c | 324 stack_max_size_read(struct file *filp, char __user *ubuf, in stack_max_size_read() 338 stack_max_size_write(struct file *filp, const char __user *ubuf, in stack_max_size_write() 476 static int stack_trace_open(struct inode *inode, struct file *file) in stack_trace_open() argument 484 return seq_open(file, &stack_trace_seq_ops); in stack_trace_open() 497 stack_trace_filter_open(struct inode *inode, struct file *file) in stack_trace_filter_open() argument 503 inode, file); in stack_trace_filter_open()
|
| /kernel/linux/linux-6.6/net/l2tp/ |
| H A D | l2tp_debugfs.c | 267 static int l2tp_dfs_seq_open(struct inode *inode, struct file *file) in l2tp_dfs_seq_open() argument 278 * file. in l2tp_dfs_seq_open() 286 rc = seq_open(file, &l2tp_dfs_seq_ops); in l2tp_dfs_seq_open() 290 seq = file->private_data; in l2tp_dfs_seq_open() 303 static int l2tp_dfs_seq_release(struct inode *inode, struct file *file) in l2tp_dfs_seq_release() argument 308 seq = file->private_data; in l2tp_dfs_seq_release() 313 seq_release(inode, file); in l2tp_dfs_seq_release()
|
| /kernel/linux/linux-6.6/tools/bpf/ |
| H A D | bpf_jit_disasm.c | 129 static char *get_flog_buff(const char *file, unsigned int *klen) in get_flog_buff() argument 135 fd = open(file, O_RDONLY); in get_flog_buff() 163 static char *get_log_buff(const char *file, unsigned int *klen) in get_log_buff() argument 165 return file ? get_flog_buff(file, klen) : get_klog_buff(klen); in get_log_buff() 259 printf(" -O <file> Write binary image of code to file, don't disassemble to stdout.\n"); in usage() 260 printf(" -f <file> Read last image dump from file or stdin (default: klog).\n"); in usage() 267 char *kbuff, *file in main() local [all...] |
| /third_party/libsnd/Octave/ |
| H A D | sndfile.cc | 60 Read a sound file from disk using libsndfile.\n\ in DEFUN_DLD() 63 { SNDFILE * file ; in DEFUN_DLD() local 80 if ((file = sf_open (filename.c_str (), SFM_READ, &sfinfo)) == NULL) in DEFUN_DLD() 81 { error ("sfread: couldn't open file %s : %s", filename.c_str (), sf_strerror (NULL)) ; in DEFUN_DLD() 86 printf ("This is a really huge file (%lld frames).\nYou may run out of memory trying to load it.\n", (long long) sfinfo.frames) ; in DEFUN_DLD() 101 { readcount = sf_readf_float (file, buffer, BUFFER_FRAMES) ; in DEFUN_DLD() 127 sf_close (file) ; in DEFUN_DLD() 135 Write a sound file to disk using libsndfile.\n\ in DEFUN_DLD() 139 { SNDFILE * file ; in DEFUN_DLD() local 183 if ((file in DEFUN_DLD() [all...] |
| /third_party/node/deps/base64/base64/bin/ |
| H A D | base64.c | 42 // Name of the input file for logging purposes. 43 const char *file; member 45 // Input file handle. 323 config->name, config->file); in encode() 392 config->name, config->file); in decode() 419 config->name, config->file); in decode() 532 // Save the name of the file. in parse_opts() 533 config->file = argv[optind]; in parse_opts() 535 // Open the file. in parse_opts() 536 if ((config->fp = fopen(config->file, "r in parse_opts() [all...] |
| /third_party/mesa3d/src/intel/compiler/ |
| H A D | brw_vec4_cse.cpp | 30 /** @file brw_vec4_cse.cpp 108 xs[0].file == IMM && in operands_match() 177 ((inst->dst.file != ARF && inst->dst.file != FIXED_GRF) || in opt_cse_local() 195 inst->src[0].file == IMM && in opt_cse_local() 199 entry->tmp = src_reg(); /* file will be BAD_FILE */ in opt_cse_local() 207 bool no_existing_temp = entry->tmp.file == BAD_FILE; in opt_cse_local() 280 if (inst->dst.file == entry->generator->src[i].file && in opt_cse_local() 290 if (src->file in opt_cse_local() [all...] |
| /third_party/node/deps/v8/src/snapshot/ |
| H A D | mksnapshot.cc | 3 // found in the LICENSE file. 21 #include "src/snapshot/embedded/embedded-file-writer.h" 39 // we end up with a corrupted snapshot file. The build step would succeed, in WriteSnapshot() 57 i::PrintF("Writing snapshot file failed.. Aborting.\n"); in MaybeWriteStartupBlob() 77 fprintf(fp, "// Autogenerated snapshot file. Do not edit.\n\n"); in WriteSnapshotFilePrefix() 117 i::PrintF("Unable to open file \"%s\" for writing.\n", filename); in GetFileDescriptorOrDie() 130 FILE* file = v8::base::OS::FOpen(filename, "rb"); in GetExtraCode() local 131 if (file == nullptr) { in GetExtraCode() 135 fseek(file, 0, SEEK_END); in GetExtraCode() 136 size_t size = ftell(file); in GetExtraCode() [all...] |
| /third_party/mesa3d/src/nouveau/codegen/ |
| H A D | nv50_ir_inlines.h | 167 return value ? value->reg.file : FILE_NULL; in getFile() 189 return value ? value->reg.file : FILE_NULL; in getFile() 339 if (reg.file >= FILE_GPR && reg.file <= LAST_REGISTER_FILE) in asLValue() 346 if (reg.file >= FILE_MEMORY_CONST) in asSym() 353 if (reg.file >= FILE_MEMORY_CONST) in asSym() 377 if (reg.file == FILE_IMMEDIATE) in asImm() 384 if (reg.file == FILE_IMMEDIATE) in asImm()
|
| /third_party/skia/third_party/externals/angle2/scripts/ |
| H A D | export_targets.py | 78 print(' ', args, file=sys.stderr) 115 print('Importing graph', file=sys.stderr) 126 print('\nProcessing graph', file=sys.stderr) 301 print('Warning in {}: {}: Invalid include: {}'.format(target_name, cur_file, include), file=sys.stderr) 315 print(' ' + cur['type'], target_name, file=sys.stderr) 328 print(f'\n{len(libraries)} libraries:', file=sys.stderr) 330 print(f' {k}', file=sys.stderr) 331 print('\nstdout begins:', file=sys.stderr)
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/ |
| H A D | checkLinks.py | 39 # to output for a given file. 44 print('Checking file:', curFile) 55 # Print a validation warning found in a file 64 # Print a validation error found in a file 104 ' '.join(['no such', errType, tag + ':' + value]), file=sys.stderr) 132 # struct, etc. file. 154 # Validate asciidoc internal links in specified file. 185 error('No such file', curFile, '- skipping check') 215 # function or struct include file, and modify the corresponding 250 # Actually process the included file no [all...] |
| /third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
| H A D | location_test.cpp | 4 // found in the LICENSE file. 30 EXPECT_EQ(location.file, token.location.file); in expectLocation() 122 EXPECT_EQ(0, token.location.file); in TEST_F() 127 EXPECT_EQ(0, token.location.file); in TEST_F() 140 EXPECT_EQ(0, token.location.file); in TEST_F() 145 EXPECT_EQ(0, token.location.file); in TEST_F() 158 EXPECT_EQ(0, token.location.file); in TEST_F() 163 EXPECT_EQ(2, token.location.file); in TEST_F()
|
| /third_party/skia/third_party/externals/zlib/google/ |
| H A D | zip.cc | 3 // found in the LICENSE file. 12 #include "base/files/file.h" 43 // Creates a WriterDelegate that can write a file at |extract_dir|/|entry_path|. 60 base::File file; variable 62 file = base::File(path, base::File::FLAG_OPEN | base::File::FLAG_READ); 64 files.push_back(std::move(file)); 69 bool DirectoryExists(const base::FilePath& file) override { 70 return base::DirectoryExists(file); 89 LOG(ERROR) << "Failed to retrieve file modification time for " 139 if (iter != entries.begin()) { // Exclude the root dir from the ZIP file in Zip() [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/js/ |
| H A D | js_generator.h | 31 // Generates JavaScript code for a given .proto file. 95 // Returns the file name extension to use for generated code. 101 // Create an output file for each input .proto file. 103 // Create an output file for each type. 105 // Put everything in a single file named by the library option. 119 // Create a library with name <name>_lib.js rather than a separate .js file 122 // Error if there are two types that would generate the same output file? 124 // The extension to use for output file names. 126 // Create a separate output file fo [all...] |
| /third_party/python/Lib/ |
| H A D | poplib.py | 12 # Example (see the test function at the end of this file) 105 self.file = self.sock.makefile('rb') 133 line = self.file.readline(_MAXLINE + 1) 286 file = self.file 287 self.file = None 288 if file is not None: 289 file.close() 412 self.file = self.sock.makefile('rb') 427 keyfile - PEM formatted file tha [all...] |
| /third_party/rust/crates/rust-cexpr/tests/ |
| H A D | clang.rs | 6 // option. This file may not be copied, modified, or distributed 214 let mut file = ptr::null_mut(); in location_in_scope() variables 217 &mut file, in location_in_scope() 224 && file != ptr::null_mut() in location_in_scope() 230 file: &str, in file_visit_macros() 237 let cfile = ffi::CString::new(file).unwrap(); in file_visit_macros() 251 file in file_visit_macros() 287 fn test_file(file: &str) -> bool { in test_file() 290 file_visit_macros(file, fix_bug_9069(), |ident, tokens| { in test_file()
|
| /third_party/rust/crates/rustix/src/io/ |
| H A D | procfs.rs | 149 // Check that we have a regular file. in check_proc_file() 173 /// Check that `file` is opened on a `procfs` filesystem. 174 fn check_procfs(file: BorrowedFd<'_>) -> io::Result<()> { in check_procfs() 175 let statfs = fstatfs(file)?; in check_procfs() 187 fn is_mountpoint(file: BorrowedFd<'_>) -> bool { in is_mountpoint() 188 let err = renameat(file, cstr!("../."), file, cstr!(".")).unwrap_err(); in is_mountpoint() 328 /// Returns a handle to a Linux `/proc/self/fdinfo/<fd>` file. 349 /// Returns a handle to a Linux `/proc/self/pagemap` file. 366 /// Returns a handle to a Linux `/proc/self/maps` file [all...] |
| /kernel/linux/linux-5.10/drivers/char/ipmi/ |
| H A D | ipmi_devintf.c | 57 static __poll_t ipmi_poll(struct file *file, poll_table *wait) in ipmi_poll() argument 59 struct ipmi_file_private *priv = file->private_data; in ipmi_poll() 63 poll_wait(file, &priv->wait, wait); in ipmi_poll() 75 static int ipmi_fasync(int fd, struct file *file, int on) in ipmi_fasync() argument 77 struct ipmi_file_private *priv = file->private_data; in ipmi_fasync() 79 return fasync_helper(fd, file, on, &priv->fasync_queue); in ipmi_fasync() 87 static int ipmi_open(struct inode *inode, struct file *file) in ipmi_open() argument 122 ipmi_release(struct inode *inode, struct file *file) ipmi_release() argument 292 ipmi_ioctl(struct file *file, unsigned int cmd, unsigned long data) ipmi_ioctl() argument [all...] |