Home
last modified time | relevance | path

Searched full:file (Results 1 – 25 of 8532) sorted by relevance

12345678910>>...342

/linux-3.3/include/media/
Dv4l2-ioctl.h25 int (*vidioc_querycap)(struct file *file, void *fh, struct v4l2_capability *cap);
28 int (*vidioc_g_priority) (struct file *file, void *fh,
30 int (*vidioc_s_priority) (struct file *file, void *fh,
34 int (*vidioc_enum_fmt_vid_cap) (struct file *file, void *fh,
36 int (*vidioc_enum_fmt_vid_overlay) (struct file *file, void *fh,
38 int (*vidioc_enum_fmt_vid_out) (struct file *file, void *fh,
40 int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh,
42 int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh,
44 int (*vidioc_enum_fmt_type_private)(struct file *file, void *fh,
48 int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh,
[all …]
/linux-3.3/fs/
Dfile_table.c10 #include <linux/file.h>
40 /* SLAB cache for file structures */
47 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu()
53 static inline void file_free(struct file *f) in file_free()
95 /* Find an unused file structure and return a pointer to it.
96 * Returns NULL, if there are no more free file structures or
105 struct file *get_empty_filp(void) in get_empty_filp()
109 struct file * f; in get_empty_filp()
143 pr_info("VFS: file-max limit %lu reached\n", get_max_files()); in get_empty_filp()
155 * alloc_file - allocate and initialize a 'struct file'
[all …]
Dread_write.c10 #include <linux/file.h>
33 static inline int unsigned_offsets(struct file *file) in unsigned_offsets() argument
35 return file->f_mode & FMODE_UNSIGNED_OFFSET; in unsigned_offsets()
38 static loff_t lseek_execute(struct file *file, struct inode *inode, in lseek_execute() argument
41 if (offset < 0 && !unsigned_offsets(file)) in lseek_execute()
46 if (offset != file->f_pos) { in lseek_execute()
47 file->f_pos = offset; in lseek_execute()
48 file->f_version = 0; in lseek_execute()
55 * @file: file structure to seek on
56 * @offset: file offset to seek to
[all …]
Deventfd.c8 #include <linux/file.h>
110 static int eventfd_release(struct inode *inode, struct file *file) in eventfd_release() argument
112 struct eventfd_ctx *ctx = file->private_data; in eventfd_release()
119 static unsigned int eventfd_poll(struct file *file, poll_table *wait) in eventfd_poll() argument
121 struct eventfd_ctx *ctx = file->private_data; in eventfd_poll()
125 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
228 static ssize_t eventfd_read(struct file *file, char __user *buf, size_t count, in eventfd_read() argument
231 struct eventfd_ctx *ctx = file->private_data; in eventfd_read()
237 res = eventfd_ctx_read(ctx, file->f_flags & O_NONBLOCK, &cnt); in eventfd_read()
244 static ssize_t eventfd_write(struct file *file, const char __user *buf, size_t count, in eventfd_write() argument
[all …]
Dsync.c6 #include <linux/file.h>
136 struct file *file; in SYSCALL_DEFINE1() local
141 file = fget_light(fd, &fput_needed); in SYSCALL_DEFINE1()
142 if (!file) in SYSCALL_DEFINE1()
144 sb = file->f_dentry->d_sb; in SYSCALL_DEFINE1()
150 fput_light(file, fput_needed); in SYSCALL_DEFINE1()
156 * @file: file to sync
161 * Write back data in range @start..@end and metadata for @file to disk. If
162 * @datasync is set only metadata needed to access modified file data is
165 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range() argument
[all …]
Danon_inodes.c12 #include <linux/file.h>
69 * anon_inode_getfile - creates a new file instance by hooking it up to an
71 * of the file
73 * @name: [in] name of the "class" of the new file
74 * @fops: [in] file operations for the new file
75 * @priv: [in] private data for the new file (will be file's private_data)
78 * Creates a new file by hooking it on a single inode. This is useful for files
81 * hence saving memory and avoiding code duplication for the file/inode/dentry
82 * setup. Returns the newly created file* or an error pointer.
84 struct file *anon_inode_getfile(const char *name, in anon_inode_getfile()
[all …]
/linux-3.3/fs/lockd/
Dsvcsubs.c28 * Global file hash table
46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
48 struct inode *inode = file->f_file->f_path.dentry->d_inode; in nlm_debug_print_file()
59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
75 * Lookup file info. If it doesn't exist, create a file info struct
76 * and open a (VFS) file for the given inode.
79 * Note that we open the file O_RDONLY even when creating write locks.
88 struct nlm_file *file; in nlm_lookup_file() local
96 /* Lock file table */ in nlm_lookup_file()
99 hlist_for_each_entry(file, pos, &nlm_files[hash], f_list) in nlm_lookup_file()
[all …]
/linux-3.3/drivers/media/video/cx25821/
Dcx25821-video.h126 extern int cx25821_video_mmap(struct file *file, struct vm_area_struct *vma);
127 extern int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv,
129 extern int cx25821_vidioc_querycap(struct file *file, void *priv,
131 extern int cx25821_vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
133 extern int cx25821_vidioc_reqbufs(struct file *file, void *priv,
135 extern int cx25821_vidioc_querybuf(struct file *file, void *priv,
137 extern int cx25821_vidioc_qbuf(struct file *file, void *priv,
139 extern int cx25821_vidioc_s_std(struct file *file, void *priv,
142 extern int cx25821_vidioc_enum_input(struct file *file, void *priv,
144 extern int cx25821_vidioc_g_input(struct file *file, void *priv,
[all …]
/linux-3.3/sound/oss/
Dsound_calls.h23 unsigned int DMAbuf_poll(struct file *file, int dev, poll_table *wait);
32 int audio_read (int dev, struct file *file, char __user *buf, int count);
33 int audio_write (int dev, struct file *file, const char __user *buf, int count);
34 int audio_open (int dev, struct file *file);
35 void audio_release (int dev, struct file *file);
36 int audio_ioctl (int dev, struct file *file,
45 int sequencer_read (int dev, struct file *file, char __user *buf, int count);
46 int sequencer_write (int dev, struct file *file, const char __user *buf, int count);
47 int sequencer_open (int dev, struct file *file);
48 void sequencer_release (int dev, struct file *file);
[all …]
/linux-3.3/fs/sysfs/
Dbin.c2 * fs/sysfs/bin.c - sysfs binary file implementation
10 * This file is released under the GPLv2.
31 * There's one bin_buffer for each open file.
44 struct file *file; member
49 fill_read(struct file *file, char *buffer, loff_t off, size_t count) in fill_read() argument
51 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata; in fill_read()
62 rc = attr->read(file, kobj, attr, buffer, off, count); in fill_read()
70 read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off) in read() argument
72 struct bin_buffer *bb = file->private_data; in read()
73 int size = file->f_path.dentry->d_inode->i_size; in read()
[all …]
/linux-3.3/drivers/media/video/saa7134/
Dsaa7134-empress.c85 static int ts_open(struct file *file) in ts_open() argument
87 struct video_device *vdev = video_devdata(file); in ts_open()
88 struct saa7134_dev *dev = video_drvdata(file); in ts_open()
103 file->private_data = dev; in ts_open()
111 static int ts_release(struct file *file) in ts_release() argument
113 struct saa7134_dev *dev = file->private_data; in ts_release()
131 ts_read(struct file *file, char __user *data, size_t count, loff_t *ppos) in ts_read() argument
133 struct saa7134_dev *dev = file->private_data; in ts_read()
140 file->f_flags & O_NONBLOCK); in ts_read()
144 ts_poll(struct file *file, struct poll_table_struct *wait) in ts_poll() argument
[all …]
/linux-3.3/fs/ecryptfs/
Dfile.c26 #include <linux/file.h>
43 * returns without any errors. This is to be used only for file reads.
53 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
63 lower_dentry = ecryptfs_dentry_to_lower(file->f_path.dentry); in ecryptfs_read_update_atime()
64 lower_vfsmount = ecryptfs_dentry_to_lower_mnt(file->f_path.dentry); in ecryptfs_read_update_atime()
109 * @file: The eCryptfs directory file
113 static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir) in ecryptfs_readdir() argument
116 struct file *lower_file; in ecryptfs_readdir()
120 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
121 lower_file->f_pos = file->f_pos; in ecryptfs_readdir()
[all …]
/linux-3.3/drivers/infiniband/core/
Duverbs_main.c10 * General Public License (GPL) Version 2, available from the file
44 #include <linux/file.h>
80 static ssize_t (*uverbs_cmd_table[])(struct ib_uverbs_file *file,
130 struct ib_uverbs_event_file *file = in ib_uverbs_release_event_file() local
133 kfree(file); in ib_uverbs_release_event_file()
136 void ib_uverbs_release_ucq(struct ib_uverbs_file *file, in ib_uverbs_release_ucq() argument
153 spin_lock_irq(&file->async_file->lock); in ib_uverbs_release_ucq()
158 spin_unlock_irq(&file->async_file->lock); in ib_uverbs_release_ucq()
161 void ib_uverbs_release_uevent(struct ib_uverbs_file *file, in ib_uverbs_release_uevent() argument
166 spin_lock_irq(&file->async_file->lock); in ib_uverbs_release_uevent()
[all …]
Duser_mad.c9 * General Public License (GPL) Version 2, available from the file
70 * device special file is opened, we take a reference on the
145 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
147 return file->use_pkey_index ? sizeof (struct ib_user_mad_hdr) : in hdr_size()
151 /* caller must hold file->mutex */
152 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
154 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
157 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument
163 mutex_lock(&file->mutex); in queue_packet()
168 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
[all …]
/linux-3.3/security/integrity/ima/
Dima_main.c15 * File: ima_main.c
20 #include <linux/file.h>
44 * - Opening a file for write when already open for read,
46 * - Opening a file for read when already open for write,
47 * could result in a file measurement error.
50 static void ima_rdwr_violation_check(struct file *file) in ima_rdwr_violation_check() argument
52 struct dentry *dentry = file->f_path.dentry; in ima_rdwr_violation_check()
54 fmode_t mode = file->f_mode; in ima_rdwr_violation_check()
61 mutex_lock(&inode->i_mutex); /* file metadata: permissions, xattr */ in ima_rdwr_violation_check()
88 struct file *file) in ima_check_last_writer() argument
[all …]
/linux-3.3/fs/debugfs/
Dfile.c2 * file.c - part of debugfs, a tiny little debug file system
24 static ssize_t default_read_file(struct file *file, char __user *buf, in default_read_file() argument
30 static ssize_t default_write_file(struct file *file, const char __user *buf, in default_write_file() argument
36 static int default_open(struct inode *inode, struct file *file) in default_open() argument
39 file->private_data = inode->i_private; in default_open()
77 * debugfs_create_u8 - create a debugfs file that is used to read and write an unsigned 8-bit value
78 * @name: a pointer to a string containing the name of the file to create.
79 * @mode: the permission that the file should have
80 * @parent: a pointer to the parent dentry for this file. This should be a
82 * file will be created in the root of the debugfs filesystem.
[all …]
/linux-3.3/scripts/kconfig/
Dutil.c13 /* file already present in list? If not add it */
14 struct file *file_lookup(const char *name) in file_lookup()
16 struct file *file; in file_lookup() local
19 for (file = file_list; file; file = file->next) { in file_lookup()
20 if (!strcmp(name, file->name)) { in file_lookup()
22 return file; in file_lookup()
26 file = malloc(sizeof(*file)); in file_lookup()
27 memset(file, 0, sizeof(*file)); in file_lookup()
28 file->name = file_name; in file_lookup()
29 file->next = file_list; in file_lookup()
[all …]
/linux-3.3/drivers/bluetooth/
Dbtmrvl_debugfs.c6 * This software file (the "File") is distributed by Marvell International
8 * (the "License"). You may use, redistribute and/or modify this File in
15 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
48 static int btmrvl_open_generic(struct inode *inode, struct file *file) in btmrvl_open_generic() argument
50 file->private_data = inode->i_private; in btmrvl_open_generic()
54 static ssize_t btmrvl_hscfgcmd_write(struct file *file, in btmrvl_hscfgcmd_write() argument
57 struct btmrvl_private *priv = file->private_data; in btmrvl_hscfgcmd_write()
80 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument
83 struct btmrvl_private *priv = file->private_data; in btmrvl_hscfgcmd_read()
100 static ssize_t btmrvl_psmode_write(struct file *file, const char __user *ubuf, in btmrvl_psmode_write() argument
[all …]
/linux-3.3/firmware/
DWHENCE5 This file attempts to document the origin and licensing information,
13 File: firmware/atmsar11.fw
22 Debian system and in the file COPYING in the Linux kernel source.
31 File: korg/k1212.dsp
41 File: ess/maestro3_assp_kernel.fw
42 File: ess/maestro3_assp_minisrc.fw
55 File: yamaha/ds1_ctrl.fw
56 File: yamaha/ds1_dsp.fw
57 File: yamaha/ds1e_ctrl.fw
68 File: advansys/mcode.bin
[all …]
/linux-3.3/drivers/net/wireless/libertas/
Ddebugfs.c24 static int open_file_generic(struct inode *inode, struct file *file) in open_file_generic() argument
26 file->private_data = inode->i_private; in open_file_generic()
30 static ssize_t write_file_dummy(struct file *file, const char __user *buf, in write_file_dummy() argument
38 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument
41 struct lbs_private *priv = file->private_data; in lbs_dev_info()
60 static ssize_t lbs_sleepparams_write(struct file *file, in lbs_sleepparams_write() argument
64 struct lbs_private *priv = file->private_data; in lbs_sleepparams_write()
101 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument
104 struct lbs_private *priv = file->private_data; in lbs_sleepparams_read()
129 static ssize_t lbs_host_sleep_write(struct file *file, in lbs_host_sleep_write() argument
[all …]
/linux-3.3/drivers/media/radio/
Dradio-si4713.c53 /* radio_si4713_fops - file operations interface */
69 static int radio_si4713_enumaudout(struct file *file, void *priv, in radio_si4713_enumaudout() argument
75 static int radio_si4713_g_audout(struct file *file, void *priv, in radio_si4713_g_audout() argument
85 static int radio_si4713_s_audout(struct file *file, void *priv, in radio_si4713_s_audout() argument
92 static int radio_si4713_querycap(struct file *file, void *priv, in radio_si4713_querycap() argument
104 static int radio_si4713_queryctrl(struct file *file, void *priv, in radio_si4713_queryctrl() argument
145 rsdev = video_get_drvdata(video_devdata(file)); in radio_si4713_queryctrl()
162 static inline struct v4l2_device *get_v4l2_dev(struct file *file) in get_v4l2_dev() argument
164 return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev; in get_v4l2_dev()
167 static int radio_si4713_g_ext_ctrls(struct file *file, void *p, in radio_si4713_g_ext_ctrls() argument
[all …]
/linux-3.3/include/linux/
Deventpoll.h29 /* Set the One Shot behaviour for the target file descriptor */
32 /* Set the Edge Triggered behaviour for the target file descriptor */
55 struct file;
60 /* Used to initialize the epoll bits inside the "struct file" */
61 static inline void eventpoll_init_file(struct file *file) in eventpoll_init_file() argument
63 INIT_LIST_HEAD(&file->f_ep_links); in eventpoll_init_file()
64 INIT_LIST_HEAD(&file->f_tfile_llink); in eventpoll_init_file()
68 /* Used to release the epoll bits inside the "struct file" */
69 void eventpoll_release_file(struct file *file);
77 static inline void eventpoll_release(struct file *file) in eventpoll_release() argument
[all …]
/linux-3.3/security/tomoyo/
Dsecurityfs_if.c29 * @file: Pointer to "struct file".
39 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf, in tomoyo_write_self() argument
98 * @file: Pointer to "struct file".
105 static ssize_t tomoyo_read_self(struct file *file, char __user *buf, in tomoyo_read_self() argument
132 * @file: Pointer to "struct file".
136 static int tomoyo_open(struct inode *inode, struct file *file) in tomoyo_open() argument
138 const int key = ((u8 *) file->f_path.dentry->d_inode->i_private) in tomoyo_open()
140 return tomoyo_open_control(key, file); in tomoyo_open()
147 * @file: Pointer to "struct file".
151 static int tomoyo_release(struct inode *inode, struct file *file) in tomoyo_release() argument
[all …]
/linux-3.3/drivers/media/video/
Dtimblogiw.c156 static int timblogiw_g_fmt(struct file *file, void *priv, in timblogiw_g_fmt() argument
159 struct video_device *vdev = video_devdata(file); in timblogiw_g_fmt()
182 static int timblogiw_try_fmt(struct file *file, void *priv, in timblogiw_try_fmt() argument
185 struct video_device *vdev = video_devdata(file); in timblogiw_try_fmt()
207 static int timblogiw_s_fmt(struct file *file, void *priv, in timblogiw_s_fmt() argument
210 struct video_device *vdev = video_devdata(file); in timblogiw_s_fmt()
218 err = timblogiw_try_fmt(file, priv, format); in timblogiw_s_fmt()
236 static int timblogiw_querycap(struct file *file, void *priv, in timblogiw_querycap() argument
239 struct video_device *vdev = video_devdata(file); in timblogiw_querycap()
253 static int timblogiw_enum_fmt(struct file *file, void *priv, in timblogiw_enum_fmt() argument
[all …]
/linux-3.3/Documentation/filesystems/
Dfiles.txt1 File management in the Linux kernel
4 This document describes how locking for files (struct file)
5 and file descriptor table (struct files) works.
7 Up until 2.6.12, the file descriptor table has been protected
9 ->file_lock protected accesses to all the file related fields
10 of the table. ->count was used for sharing the file descriptor
14 a put_files_struct() frees the file descriptor (fd) table.
15 The files (struct file) themselves are protected using
18 In the new lock-free model of file descriptor management,
20 based on RCU. The file descriptor table contains multiple
[all …]

12345678910>>...342