Searched refs:file (Results 1 - 25 of 3441) sorted by last modified time

1234567891011>>

/linux-master/fs/btrfs/
H A Dinode.c10 #include <linux/file.h>
62 #include "file-item.h"
65 #include "file.h"
597 * We're an inline extent, so nobody can extend the file past i_size
616 * conditionally insert an inline extent into the file. This
826 * Work queue call back to started compression on a file and pages.
863 * Otherwise applications with the file mmap'd can wander in and change
889 * end of the file is before the start of our current
902 * Skip compression for a small file range(<=blocksize) that
1256 * when extent_io.c finds a delayed allocation range in the file,
5876 btrfs_opendir(struct inode *inode, struct file *file) argument
5899 btrfs_dir_llseek(struct file *file, loff_t offset, int whence) argument
5937 btrfs_real_readdir(struct file *file, struct dir_context *ctx) argument
9830 btrfs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, struct file *file, umode_t mode) argument
10676 btrfs_swap_deactivate(struct file *file) argument
10684 btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, sector_t *span) argument
10940 btrfs_swap_deactivate(struct file *file) argument
10944 btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, sector_t *span) argument
[all...]
/linux-master/virt/kvm/
H A Dkvm_main.c29 #include <linux/file.h>
118 static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
121 static long kvm_vcpu_compat_ioctl(struct file *file, unsigned int ioctl,
132 static long kvm_no_compat_ioctl(struct file *file, unsigned int ioctl, argument
135 static int kvm_no_compat_open(struct inode *inode, struct file *file) argument
513 * the vcpu->pid pointer, and at destruction time all file descriptor
4169 kvm_vcpu_mmap(struct file *file, struct vm_area_struct *vma) argument
4366 kvm_vcpu_stats_read(struct file *file, char __user *user_buffer, size_t size, loff_t *offset) argument
4376 kvm_vcpu_stats_release(struct inode *inode, struct file *file) argument
4394 struct file *file; local
5057 kvm_vm_stats_read(struct file *file, char __user *user_buffer, size_t size, loff_t *offset) argument
5067 kvm_vm_stats_release(struct inode *inode, struct file *file) argument
5085 struct file *file; local
5440 file_is_kvm(struct file *file) argument
5451 struct file *file; local
6031 kvm_debugfs_open(struct inode *inode, struct file *file, int (*get)(void *, u64 *), int (*set)(void *, u64), const char *fmt) argument
6055 kvm_debugfs_release(struct inode *inode, struct file *file) argument
6144 kvm_stat_data_open(struct inode *inode, struct file *file) argument
[all...]
/linux-master/kernel/sched/
H A Dsched.h34 #include <linux/file.h>
/linux-master/include/linux/
H A Dblkdev.h27 #include <linux/file.h>
1112 * regular file system I/O. This can be increased through sysfs.
1497 * Sync the file system mounted on the block device.
1502 * Freeze the file system mounted on the block device.
1507 * Thaw the file system mounted on the block device.
1527 struct file *bdev_file_open_by_dev(dev_t dev, blk_mode_t mode, void *holder,
1529 struct file *bdev_file_open_by_path(const char *path, blk_mode_t mode,
1540 struct block_device *file_bdev(struct file *bdev_file);
1580 void bdev_fput(struct file *bdev_file);
/linux-master/fs/sysfs/
H A Dfile.c3 * fs/sysfs/file.c - sysfs regular (text) file implementation
82 loff_t size = file_inode(of->file)->i_size;
97 return battr->read(of->file, kobj, battr, buf, pos, count);
145 loff_t size = file_inode(of->file)->i_size;
158 return battr->write(of->file, kobj, battr, buf, pos, count);
167 return battr->mmap(of->file, kobj, battr, vma);
177 return battr->llseek(of->file, kobj, battr, offset, whence);
179 return generic_file_llseek(of->file, offset, whence);
187 of->file
[all...]
/linux-master/fs/smb/server/
H A Dvfs.c165 * ksmbd_vfs_create() - vfs helper for smb create file
167 * @name: file name that is relative to share
168 * @mode: file create mode
279 pr_err("failed to get xattr in file\n");
321 * check_lock_range() - vfs helper for smb byte range file locking
322 * @filp: the file to apply the lock to
329 static int check_lock_range(struct file *filp, loff_t start, loff_t end,
365 * ksmbd_vfs_read() - vfs helper for smb file read
367 * @fp: ksmbd file pointer
369 * @pos: file po
[all...]
H A Dsmb2pdu.c730 * smb2_get_dos_mode() - get file mode in dos format from unix mode
731 * @stat: kstat containing file mode
2044 * @file_present: is file already present
2045 * @access: file access flags
2046 * @disposition: file disposition flags
2049 * Return: file open flags
2459 ksmbd_debug(SMB, "empty xattr in the file\n");
2519 ksmbd_debug(SMB, "failed to store file attribute into xattr\n");
2556 ksmbd_debug(SMB, "file does not exist, so creating\n");
2565 ksmbd_debug(SMB, "creating regular file\
[all...]
/linux-master/fs/smb/client/
H A Dsmb2ops.c1460 /* End of file and Attributes should not have to be updated on close */
1933 /* if file already sparse don't bother setting sparse again */
1945 * in the file attributes. If we fail setting sparse though we
1948 * if the file is repeatedly extended.
1977 * If extending file more than one page make sparse. Many Linux fs
1985 /* whether set sparse succeeds or not, extend the file */
2026 * here in addition to setting the file size, in reflink
2027 * it is likely that the target file is sparse. Its allocation
2029 * to make sure that file's cached size is updated immediately
2171 smb3_notify(const unsigned int xid, struct file *pfil
3170 smb3_zero_data(struct file *file, struct cifs_tcon *tcon, loff_t offset, loff_t len, unsigned int xid) argument
3188 smb3_zero_range(struct file *file, struct cifs_tcon *tcon, loff_t offset, loff_t len, bool keep_size) argument
3251 smb3_punch_hole(struct file *file, struct cifs_tcon *tcon, loff_t offset, loff_t len) argument
3416 smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon, loff_t off, loff_t len, bool keep_size) argument
3543 smb3_collapse_range(struct file *file, struct cifs_tcon *tcon, loff_t off, loff_t len) argument
3598 smb3_insert_range(struct file *file, struct cifs_tcon *tcon, loff_t off, loff_t len) argument
3653 smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offset, int whence) argument
3812 smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, loff_t off, loff_t len) argument
[all...]
H A Dcifsproto.h192 struct cifsFileInfo *cifs_new_fileinfo(struct cifs_fid *fid, struct file *file,
H A Dcifsglob.h46 #define MAX_REOPEN_ATT 5 /* these many maximum attempts to reopen a file */
370 /* query file data from the server */
373 /* query reparse point to determine which type of special file */
388 /* set size by file handle */
415 /* unlink file */
418 /* open, rename and delete file */
439 /* open a file for non-posix mounts */
444 /* close a file */
447 /* close a file, returning file attribute
1622 CIFS_FILE_SB(struct file *file) argument
[all...]
H A Dcifsfs.c339 static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len) argument
341 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file);
346 return server->ops->fallocate(file, tcon, mode, off, len);
363 } else /* file mode might have been restricted at mount time
388 * Until the file is open and we have gotten oplock info back from the
389 * server, can not assume caching of file data or metadata.
709 * Display file and directory attribute timeout in seconds.
710 * If file and directory attribute timeout the same then actimeo
1044 static loff_t cifs_llseek(struct file *fil argument
1090 cifs_setlease(struct file *file, int arg, struct file_lease **lease, void **priv) argument
1497 cifs_dir_fsync(struct file *file, loff_t start, loff_t end, int datasync) argument
[all...]
/linux-master/fs/bcachefs/
H A Dthread_with_file.c8 #include <linux/file.h>
26 struct file *file = NULL; local
51 file = anon_inode_getfile(name, fops, thr, fd_flags);
52 ret = PTR_ERR_OR_ZERO(file);
58 fd_install(fd, file);
109 static ssize_t thread_with_stdio_read(struct file *file, char __user *ubuf, argument
113 container_of(file->private_data, struct thread_with_stdio, thr);
118 if (!(file
149 thread_with_stdio_release(struct inode *inode, struct file *file) argument
162 thread_with_stdio_write(struct file *file, const char __user *ubuf, size_t len, loff_t *ppos) argument
215 thread_with_stdio_poll(struct file *file, struct poll_table_struct *wait) argument
234 thread_with_stdout_poll(struct file *file, struct poll_table_struct *wait) argument
250 thread_with_stdio_flush(struct file *file, fl_owner_t id) argument
258 thread_with_stdio_ioctl(struct file *file, unsigned int cmd, unsigned long p) argument
[all...]
H A Dfs.c887 struct inode *vdir, struct file *file, umode_t mode)
891 file->f_path.dentry, mode, 0,
897 d_mark_tmpfile(file, &inode->v);
898 d_instantiate(file->f_path.dentry, &inode->v);
899 return finish_open_simple(file, 0);
1068 static int bch2_mmap(struct file *file, struct vm_area_struct *vma) argument
1070 file_accessed(file);
1078 static loff_t bch2_dir_llseek(struct file *fil argument
886 bch2_tmpfile(struct mnt_idmap *idmap, struct inode *vdir, struct file *file, umode_t mode) argument
1084 bch2_vfs_readdir(struct file *file, struct dir_context *ctx) argument
1098 bch2_open(struct inode *vinode, struct file *file) argument
[all...]
H A Dchardev.c444 static int bch2_data_job_release(struct inode *inode, struct file *file) argument
446 struct bch_data_ctx *ctx = container_of(file->private_data, struct bch_data_ctx, thr);
453 static ssize_t bch2_data_job_read(struct file *file, char __user *buf, argument
456 struct bch_data_ctx *ctx = container_of(file->private_data, struct bch_data_ctx, thr);
946 static long bch2_chardev_ioctl(struct file *filp, unsigned cmd, unsigned long v)
/linux-master/drivers/usb/gadget/function/
H A Df_fs.c3 * f_fs.c -- user mode file system API for USB composite function controllers
298 /* Control file aka ep0 *****************************************************/
362 static ssize_t ffs_ep0_write(struct file *file, const char __user *buf, argument
365 struct ffs_data *ffs = file->private_data;
374 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK);
536 static ssize_t ffs_ep0_read(struct file *file, char __user *buf, argument
539 struct ffs_data *ffs = file->private_data;
549 ret = ffs_mutex_lock(&ffs->mutex, file
638 ffs_ep0_open(struct inode *inode, struct file *file) argument
651 ffs_ep0_release(struct inode *inode, struct file *file) argument
660 ffs_ep0_ioctl(struct file *file, unsigned code, unsigned long value) argument
678 ffs_ep0_poll(struct file *file, poll_table *wait) argument
968 ffs_epfile_wait_ep(struct file *file) argument
989 ffs_epfile_io(struct file *file, struct ffs_io_data *io_data) argument
1191 ffs_epfile_open(struct inode *inode, struct file *file) argument
1336 ffs_epfile_release(struct inode *inode, struct file *file) argument
1464 ffs_dmabuf_attach(struct file *file, int fd) argument
1535 ffs_dmabuf_detach(struct file *file, int fd) argument
1574 ffs_dmabuf_transfer(struct file *file, const struct usb_ffs_dmabuf_transfer_req *req) argument
1715 ffs_epfile_ioctl(struct file *file, unsigned code, unsigned long value) argument
[all...]
/linux-master/drivers/usb/class/
H A Dcdc-wdm.c376 (struct file *file, const char __user *buffer, size_t count, loff_t *ppos)
380 struct wdm_device *desc = file->private_data;
414 if (!(file->f_flags & O_NONBLOCK))
520 (struct file *file, char __user *buffer, size_t count, loff_t *ppos)
524 struct wdm_device *desc = file->private_data;
545 if (file->f_flags & O_NONBLOCK) {
628 static int wdm_wait_for_response(struct file *file, lon argument
375 wdm_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
519 wdm_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
667 wdm_fsync(struct file *file, loff_t start, loff_t end, int datasync) argument
677 wdm_flush(struct file *file, fl_owner_t id) argument
682 wdm_poll(struct file *file, struct poll_table_struct *wait) argument
708 wdm_open(struct inode *inode, struct file *file) argument
760 wdm_release(struct inode *inode, struct file *file) argument
791 wdm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/drivers/tty/serial/
H A Dserial_core.c1753 static void uart_close(struct tty_struct *tty, struct file *filp)
1922 * any outstanding file descriptors should be pointing at
1992 static int uart_open(struct tty_struct *tty, struct file *filp)
2812 * We have a proc file in /proc/tty/driver which is named after the normal
/linux-master/drivers/clk/
H A Dclk.c3640 static ssize_t current_parent_write(struct file *file, const char __user *ubuf, argument
3643 struct seq_file *s = file->private_data;
/linux-master/drivers/android/
H A Dbinder.c46 #include <linux/file.h>
1548 * fd fixups and fput the file structs. It is safe to
1557 fput(fixup->file);
1896 struct file *file; member in struct:binder_task_work_cb
1900 * binder_do_fd_close() - close list of file descriptors
1904 * function if there is a chance that binder's own file descriptor
1910 * given file descriptor.
1917 fput(twcb->file);
1922 * binder_deferred_fd_close() - schedule a close for the given file
2274 struct file *file; local
[all...]
/linux-master/block/
H A Dioctl.c277 * Only allow unprivileged reservations if the file descriptor is open
480 struct file *file; local
492 file = bdev_file_open_by_dev(bdev->bd_dev, mode, &bdev, NULL);
493 if (IS_ERR(file))
496 fput(file);
595 long blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) argument
597 struct block_device *bdev = I_BDEV(file->f_mapping->host);
599 blk_mode_t mode = file_to_blk_mode(file);
654 compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) argument
[all...]
H A Dbdev.c52 struct block_device *file_bdev(struct file *bdev_file)
818 static inline bool bdev_unclaimed(const struct file *bdev_file)
823 static void bdev_yield_write_access(struct file *bdev_file)
847 * @bdev_file: file for the block device
859 const struct blk_holder_ops *hops, struct file *bdev_file)
938 * file was opened for writing, but does not allow reads or writes.
965 struct file *bdev_file_open_by_dev(dev_t dev, blk_mode_t mode, void *holder,
968 struct file *bdev_file;
1001 struct file *bdev_file_open_by_path(const char *path, blk_mode_t mode,
1005 struct file *fil local
[all...]
/linux-master/arch/x86/kvm/
H A Dx86.c4887 long kvm_arch_dev_ioctl(struct file *filp,
5862 long kvm_arch_vcpu_ioctl(struct file *filp,
6858 long kvm_arch_vm_compat_ioctl(struct file *filp, unsigned int ioctl,
6991 int kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
/linux-master/arch/x86/kvm/svm/
H A Dsvm.c25 #include <linux/file.h>
832 * beginning of the file
H A Dsev.c38 * this file are not used but this file still gets compiled into the KVM AMD
314 if (!f.file)
317 ret = sev_issue_cmd_external_user(f.file, id, data, error);
1802 if (!f.file)
1805 if (!file_is_kvm(f.file)) {
1810 source_kvm = f.file->private_data;
2084 if (!f.file)
2087 if (!file_is_kvm(f.file)) {
2092 source_kvm = f.file
[all...]
/linux-master/
H A DMakefile11 # Comments in this file are targeted only to the developer, do not
12 # expect to learn how to build the kernel reading this file.
30 # a file in another dir (which doesn't happen often, but it's often
118 # See the file "Documentation/dev-tools/sparse.rst" for more details,
366 KERNELRELEASE = $(call read-file, include/config/kernel.release)
770 @echo >&2 '*** Configuration file "$@" not found!'
1166 ifeq ($(origin KERNELRELEASE),file)
1568 @echo ' dir/file.[ois] - Build specified target only'
1569 @echo ' dir/file.ll - Build the LLVM assembly file'
[all...]

Completed in 504 milliseconds

1234567891011>>