Searched refs:file (Results 1 - 25 of 112) sorted by relevance

12345

/include/linux/
H A Dima.h18 extern int ima_file_check(struct file *file, int mask);
19 extern void ima_file_free(struct file *file);
20 extern int ima_file_mmap(struct file *file, unsigned long prot);
28 static inline int ima_file_check(struct file *file, int mask) argument
33 static inline void ima_file_free(struct file *file) argument
38 ima_file_mmap(struct file *file, unsigned long prot) argument
[all...]
H A Deventpoll.h41 /* Set the One Shot behaviour for the target file descriptor */
44 /* Set the Edge Triggered behaviour for the target file descriptor */
67 struct file;
72 /* Used to initialize the epoll bits inside the "struct file" */
73 static inline void eventpoll_init_file(struct file *file) argument
75 INIT_LIST_HEAD(&file->f_ep_links);
76 INIT_LIST_HEAD(&file->f_tfile_llink);
80 /* Used to release the epoll bits inside the "struct file" */
81 void eventpoll_release_file(struct file *fil
89 eventpoll_release(struct file *file) argument
113 eventpoll_init_file(struct file *file) argument
114 eventpoll_release(struct file *file) argument
[all...]
H A Dfile.h12 struct file;
14 extern void fput(struct file *);
20 extern struct file *alloc_file(struct path *, fmode_t mode,
23 static inline void fput_light(struct file *file, int fput_needed) argument
26 fput(file);
29 extern struct file *fget(unsigned int fd);
30 extern struct file *fget_light(unsigned int fd, int *fput_needed);
31 extern struct file *fget_raw(unsigned int fd);
32 extern struct file *fget_raw_ligh
[all...]
H A Dcoredump.h9 * These are the only things you should do on a core-file: use only these
12 extern int dump_write(struct file *file, const void *addr, int nr);
13 extern int dump_seek(struct file *file, loff_t off);
H A Dseq_file_net.h15 int seq_open_net(struct inode *, struct file *,
17 int single_open_net(struct inode *, struct file *file,
19 int seq_release_net(struct inode *, struct file *);
20 int single_release_net(struct inode *, struct file *);
H A Ddnotify.h15 struct file * dn_filp;
32 extern void dnotify_flush(struct file *, fl_owner_t);
33 extern int fcntl_dirnotify(int, struct file *, unsigned long);
37 static inline void dnotify_flush(struct file *filp, fl_owner_t id)
41 static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
H A Ddlm_plock.h45 int dlm_posix_lock(dlm_lockspace_t *lockspace, u64 number, struct file *file,
47 int dlm_posix_unlock(dlm_lockspace_t *lockspace, u64 number, struct file *file,
49 int dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file,
H A Dnsc_gpio.h14 file-operations routines implemented in nsc_gpio module.
33 extern ssize_t nsc_gpio_write(struct file *file, const char __user *data,
36 extern ssize_t nsc_gpio_read(struct file *file, char __user *buf,
H A Dramfs.h11 extern unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
17 extern int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
H A Dtty_ldisc.h34 * ssize_t (*read)(struct tty_struct * tty, struct file * file,
42 * ssize_t (*write)(struct tty_struct * tty, struct file * file,
51 * int (*ioctl)(struct tty_struct * tty, struct file * file,
62 * long (*compat_ioctl)(struct tty_struct * tty, struct file * file,
72 * int (*poll)(struct tty_struct * tty, struct file * file,
[all...]
H A Danon_inodes.h13 struct file *anon_inode_getfile(const char *name,
H A Deventfd.h12 #include <linux/file.h>
31 struct file *eventfd_file_create(unsigned int count, int flags);
34 struct file *eventfd_fget(int fd);
36 struct eventfd_ctx *eventfd_ctx_fileget(struct file *file);
48 static inline struct file *eventfd_file_create(unsigned int count, int flags)
H A Dfsnotify.h38 static inline int fsnotify_perm(struct file *file, int mask) argument
40 struct path *path = &file->f_path;
45 if (file->f_mode & FMODE_NONOTIFY)
84 * fsnotify_move - file old_name at old_dir was moved to new_name at new_dir
190 * fsnotify_access - file was read
192 static inline void fsnotify_access(struct file *file) argument
194 struct path *path = &file->f_path;
201 if (!(file
210 fsnotify_modify(struct file *file) argument
228 fsnotify_open(struct file *file) argument
244 fsnotify_close(struct file *file) argument
[all...]
H A Dmount.h56 struct file; /* forward dec */
59 extern int mnt_want_write_file(struct file *file);
62 extern void mnt_drop_write_file(struct file *file);
H A Dshm.h89 struct file * shm_file;
111 extern int is_file_shm_hugepages(struct file *file);
119 static inline int is_file_shm_hugepages(struct file *file) argument
H A Dfs.h5 * This file has definitions for some important file table
16 * the file limit at runtime and only root can increase the per-process
32 #define SEEK_SET 0 /* seek relative to beginning of file */
33 #define SEEK_CUR 1 /* seek relative to current file position */
34 #define SEEK_END 2 /* seek relative to end of file */
72 * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond
76 /* file is open for reading */
78 /* file is open for writing */
80 /* file i
976 struct file { struct
1222 fcntl_getlk(struct file *file, struct flock __user *user) argument
1227 fcntl_setlk(unsigned int fd, struct file *file, unsigned int cmd, struct flock __user *user) argument
1234 fcntl_getlk64(struct file *file, struct flock64 __user *user) argument
1239 fcntl_setlk64(unsigned int fd, struct file *file, unsigned int cmd, struct flock64 __user *user) argument
1826 file_accessed(struct file *file) argument
2243 deny_write_access(struct file *file) argument
2252 allow_write_access(struct file *file) argument
[all...]
/include/media/
H A Dv4l2-ioctl.h24 int (*vidioc_querycap)(struct file *file, void *fh, struct v4l2_capability *cap);
27 int (*vidioc_g_priority) (struct file *file, void *fh,
29 int (*vidioc_s_priority) (struct file *file, void *fh,
33 int (*vidioc_enum_fmt_vid_cap) (struct file *file, void *fh,
35 int (*vidioc_enum_fmt_vid_overlay) (struct file *file, voi
[all...]
H A Dmedia-devnode.h45 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
46 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
47 unsigned int (*poll) (struct file *, struct poll_table_struct *);
48 long (*ioctl) (struct file *, unsigned int, unsigned long);
49 int (*open) (struct file *);
50 int (*release) (struct file *);
87 static inline struct media_devnode *media_devnode_data(struct file *filp)
H A Dv4l2-mem2mem.h103 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
106 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
109 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
111 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
114 int v4l2_m2m_streamon(struct file *file, struc
[all...]
H A Dv4l2-fh.h4 * V4L2 file handle. Store per file handle data for the V4L2
5 * framework. Using file handles is optional for the drivers.
49 * Initialise the file handle. Parts of the V4L2 framework using the
50 * file handles should be initialised in this function. Must be called
56 * Add the fh to the list of file handles on a video_device. The file
63 * with the file pointer.
65 int v4l2_fh_open(struct file *filp);
67 * Remove file handl
[all...]
H A Dsaa6588.h32 struct file *instance;
H A Dv4l2-dev.h38 /* file->private_data points to struct v4l2_fh */
60 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
61 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
62 unsigned int (*poll) (struct file *, struct poll_table_struct *);
63 long (*ioctl) (struct file *, unsigned int, unsigned long);
64 long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
66 long (*compat_ioctl32) (struct file *, unsigned int, unsigned long);
68 unsigned long (*get_unmapped_area) (struct file *, unsigned long,
70 int (*mmap) (struct file *, struct vm_area_struct *);
71 int (*open) (struct file *);
191 video_drvdata(struct file *file) argument
[all...]
H A Dlirc_dev.h209 * associated with the given device file pointer.
211 void *lirc_get_pdata(struct file *file);
213 /* default file operations
216 int lirc_dev_fop_open(struct inode *inode, struct file *file);
217 int lirc_dev_fop_close(struct inode *inode, struct file *file);
218 unsigned int lirc_dev_fop_poll(struct file *file, poll_tabl
[all...]
/include/sound/
H A Dhwdep.h30 /* hwdep file ops; all ops can be NULL */
32 long long (*llseek)(struct snd_hwdep *hw, struct file *file,
38 int (*open)(struct snd_hwdep *hw, struct file * file);
39 int (*release)(struct snd_hwdep *hw, struct file * file);
40 unsigned int (*poll)(struct snd_hwdep *hw, struct file *file,
42 int (*ioctl)(struct snd_hwdep *hw, struct file *fil
[all...]
/include/linux/ceph/
H A Ddebugfs.h8 static int name##_open(struct inode *inode, struct file *file) \
13 ret = single_open(file, name, NULL); \
14 sf = file->private_data; \

Completed in 468 milliseconds

12345