| /OK3568_Linux_fs/kernel/security/selinux/ |
| H A D | selinuxfs.c | 124 static ssize_t sel_read_enforce(struct file *filp, char __user *buf, in sel_read_enforce() 137 static ssize_t sel_write_enforce(struct file *file, const char __user *buf, in sel_write_enforce() argument 141 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_enforce() 201 static ssize_t sel_read_handle_unknown(struct file *filp, char __user *buf, in sel_read_handle_unknown() 222 static int sel_open_handle_status(struct inode *inode, struct file *filp) in sel_open_handle_status() 235 static ssize_t sel_read_handle_status(struct file *filp, char __user *buf, in sel_read_handle_status() 247 static int sel_mmap_handle_status(struct file *filp, in sel_mmap_handle_status() 277 static ssize_t sel_write_disable(struct file *file, const char __user *buf, in sel_write_disable() argument 281 struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; in sel_write_disable() 336 static ssize_t sel_read_policyvers(struct file *filp, char __user *buf, in sel_read_policyvers() [all …]
|
| /OK3568_Linux_fs/kernel/security/integrity/ima/ |
| H A D | ima.h | 65 struct file *file; member 143 int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash); 149 void ima_add_violation(struct file *file, const unsigned char *filename, 191 hook(FILE_CHECK, file) \ 261 struct file *file, void *buf, loff_t size, 263 void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, 312 struct file *file, const unsigned char *filename, 316 void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file); 333 struct file *file, in ima_appraise_measurement() argument 349 struct file *file) in ima_update_xattr() argument
|
| /OK3568_Linux_fs/kernel/fs/coda/ |
| H A D | psdev.c | 58 static __poll_t coda_psdev_poll(struct file *file, poll_table * wait) in coda_psdev_poll() argument 60 struct venus_comm *vcp = (struct venus_comm *) file->private_data; in coda_psdev_poll() 63 poll_wait(file, &vcp->vc_waitq, wait); in coda_psdev_poll() 72 static long coda_psdev_ioctl(struct file * filp, unsigned int cmd, unsigned long arg) in coda_psdev_ioctl() 91 static ssize_t coda_psdev_write(struct file *file, const char __user *buf, in coda_psdev_write() argument 94 struct venus_comm *vcp = (struct venus_comm *) file->private_data; in coda_psdev_write() 208 static ssize_t coda_psdev_read(struct file * file, char __user * buf, in coda_psdev_read() argument 212 struct venus_comm *vcp = (struct venus_comm *) file->private_data; in coda_psdev_read() 225 if (file->f_flags & O_NONBLOCK) { in coda_psdev_read() 272 static int coda_psdev_open(struct inode * inode, struct file * file) in coda_psdev_open() argument [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | splice.c | 298 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() 351 struct file *file = sd->u.file; in pipe_to_sendpage() local 355 if (!likely(file->f_op->sendpage)) in pipe_to_sendpage() 364 return file->f_op->sendpage(file, buf->page, buf->offset, in pipe_to_sendpage() 584 ssize_t splice_from_pipe(struct pipe_inode_info *pipe, struct file *out, in splice_from_pipe() 593 .u.file = out, in splice_from_pipe() 618 iter_file_splice_write(struct pipe_inode_info *pipe, struct file *out, in iter_file_splice_write() 625 .u.file = out, in iter_file_splice_write() 740 ssize_t generic_splice_sendpage(struct pipe_inode_info *pipe, struct file *out, in generic_splice_sendpage() 748 static int warn_unsupported(struct file *file, const char *op) in warn_unsupported() argument [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/PCI/ |
| H A D | sysfs-pci.rst | 37 file function 58 ro - read only file 59 rw - file is readable and writable 60 wo - write only file 61 mmap - file is mmapable 62 ascii - file contains ascii text 63 binary - file contains binary data 64 cpumask - file contains a cpumask type 69 the exception of the 'rom' file. Writable files can be used to perform 71 mmapable files are available via an mmap of the file at offset 0 and can be [all …]
|
| /OK3568_Linux_fs/kernel/fs/cachefiles/ |
| H A D | daemon.c | 24 static int cachefiles_daemon_open(struct inode *, struct file *); 25 static int cachefiles_daemon_release(struct inode *, struct file *); 26 static ssize_t cachefiles_daemon_read(struct file *, char __user *, size_t, 28 static ssize_t cachefiles_daemon_write(struct file *, const char __user *, 30 static __poll_t cachefiles_daemon_poll(struct file *, 83 static int cachefiles_daemon_open(struct inode *inode, struct file *file) in cachefiles_daemon_open() argument 121 file->private_data = cache; in cachefiles_daemon_open() 122 cache->cachefilesd = file; in cachefiles_daemon_open() 129 static int cachefiles_daemon_release(struct inode *inode, struct file *file) in cachefiles_daemon_release() argument 131 struct cachefiles_cache *cache = file->private_data; in cachefiles_daemon_release() [all …]
|
| /OK3568_Linux_fs/kernel/fs/xfs/ |
| H A D | xfs_ioctl.h | 16 struct file *filp, 30 struct file *parfilp, 35 struct file *parfilp, 38 int xfs_ioc_attrmulti_one(struct file *parfilp, struct inode *inode, 47 struct file *parfilp, 53 struct file *filp, 59 struct file *file,
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/ |
| H A D | vehicle_dev.c | 43 static int vechile_open(struct inode *inode, struct file *file) in vechile_open() argument 48 static int vechile_close(struct inode *inode, struct file *file) in vechile_close() argument 53 static ssize_t vechile_write(struct file *file, const char __user *buf, in vechile_write() argument 75 vechile_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in vechile_read() argument
|
| /OK3568_Linux_fs/kernel/include/media/ |
| H A D | media-devnode.h | 49 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); 50 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); 51 __poll_t (*poll) (struct file *, struct poll_table_struct *); 52 long (*ioctl) (struct file *, unsigned int, unsigned long); 53 long (*compat_ioctl) (struct file *, unsigned int, unsigned long); 54 int (*open) (struct file *); 55 int (*release) (struct file *); 147 static inline struct media_devnode *media_devnode_data(struct file *filp) in media_devnode_data()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/os_dep/linux/ |
| H A D | rtw_proc.c | 34 #define file_inode(file) ((file)->f_dentry->d_inode) argument 49 int single_open_size(struct file *file, int (*show)(struct seq_file *, void *), in single_open_size() argument 56 ret = single_open(file, show, data); in single_open_size() 61 ((struct seq_file *)file->private_data)->buf = buf; in single_open_size() 62 ((struct seq_file *)file->private_data)->size = size; in single_open_size() 124 static ssize_t proc_set_log_level(struct file *file, const char __user *buffer, size_t count, loff_… in proc_set_log_level() argument 171 static ssize_t proc_set_country_chplan_map(struct file *file, const char __user *buffer, size_t cou… in proc_set_country_chplan_map() argument 304 static int rtw_drv_proc_open(struct inode *inode, struct file *file) in rtw_drv_proc_open() argument 312 int res = seq_open(file, hdl->u.seq_op); in rtw_drv_proc_open() 315 ((struct seq_file *)file->private_data)->private = private; in rtw_drv_proc_open() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/os_dep/linux/ |
| H A D | rtw_proc.c | 34 #define file_inode(file) ((file)->f_dentry->d_inode) argument 49 int single_open_size(struct file *file, int (*show)(struct seq_file *, void *), in single_open_size() argument 56 ret = single_open(file, show, data); in single_open_size() 61 ((struct seq_file *)file->private_data)->buf = buf; in single_open_size() 62 ((struct seq_file *)file->private_data)->size = size; in single_open_size() 124 static ssize_t proc_set_log_level(struct file *file, const char __user *buffer, size_t count, loff_… in proc_set_log_level() argument 171 static ssize_t proc_set_country_chplan_map(struct file *file, const char __user *buffer, size_t cou… in proc_set_country_chplan_map() argument 304 static int rtw_drv_proc_open(struct inode *inode, struct file *file) in rtw_drv_proc_open() argument 312 int res = seq_open(file, hdl->u.seq_op); in rtw_drv_proc_open() 315 ((struct seq_file *)file->private_data)->private = private; in rtw_drv_proc_open() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | sun8i_rotate.c | 171 static inline struct rotate_ctx *rotate_file2ctx(struct file *file) in rotate_file2ctx() argument 173 return container_of(file->private_data, struct rotate_ctx, fh); in rotate_file2ctx() 212 static int rotate_querycap(struct file *file, void *priv, in rotate_querycap() argument 223 static int rotate_enum_fmt_vid_cap(struct file *file, void *priv, in rotate_enum_fmt_vid_cap() argument 229 static int rotate_enum_fmt_vid_out(struct file *file, void *priv, in rotate_enum_fmt_vid_out() argument 235 static int rotate_enum_framesizes(struct file *file, void *priv, in rotate_enum_framesizes() argument 288 static int rotate_g_fmt_vid_cap(struct file *file, void *priv, in rotate_g_fmt_vid_cap() argument 291 struct rotate_ctx *ctx = rotate_file2ctx(file); in rotate_g_fmt_vid_cap() 298 static int rotate_g_fmt_vid_out(struct file *file, void *priv, in rotate_g_fmt_vid_out() argument 301 struct rotate_ctx *ctx = rotate_file2ctx(file); in rotate_g_fmt_vid_out() [all …]
|
| /OK3568_Linux_fs/kernel/fs/hostfs/ |
| H A D | hostfs_kern.c | 35 #define FILE_HOSTFS_I(file) HOSTFS_I(file_inode(file)) argument 270 static int hostfs_readdir(struct file *file, struct dir_context *ctx) in hostfs_readdir() argument 278 name = dentry_name(file->f_path.dentry); in hostfs_readdir() 296 static int hostfs_open(struct inode *ino, struct file *file) in hostfs_open() argument 303 mode = file->f_mode & (FMODE_READ | FMODE_WRITE); in hostfs_open() 317 name = dentry_name(file->f_path.dentry); in hostfs_open() 355 static int hostfs_file_release(struct inode *inode, struct file *file) in hostfs_file_release() argument 362 static int hostfs_fsync(struct file *file, loff_t start, loff_t end, in hostfs_fsync() argument 365 struct inode *inode = file->f_mapping->host; in hostfs_fsync() 368 ret = file_write_and_wait_range(file, start, end); in hostfs_fsync() [all …]
|
| /OK3568_Linux_fs/kernel/mm/damon/ |
| H A D | dbgfs.c | 49 static ssize_t dbgfs_attrs_read(struct file *file, in dbgfs_attrs_read() argument 52 struct damon_ctx *ctx = file->private_data; in dbgfs_attrs_read() 66 static ssize_t dbgfs_attrs_write(struct file *file, in dbgfs_attrs_write() argument 69 struct damon_ctx *ctx = file->private_data; in dbgfs_attrs_write() 131 static ssize_t dbgfs_schemes_read(struct file *file, char __user *buf, in dbgfs_schemes_read() argument 134 struct damon_ctx *ctx = file->private_data; in dbgfs_schemes_read() 240 static ssize_t dbgfs_schemes_write(struct file *file, const char __user *buf, in dbgfs_schemes_write() argument 243 struct damon_ctx *ctx = file->private_data; in dbgfs_schemes_write() 307 static ssize_t dbgfs_target_ids_read(struct file *file, in dbgfs_target_ids_read() argument 310 struct damon_ctx *ctx = file->private_data; in dbgfs_target_ids_read() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/os_dep/linux/ |
| H A D | rtw_proc.c | 34 #define file_inode(file) ((file)->f_dentry->d_inode) argument 49 int single_open_size(struct file *file, int (*show)(struct seq_file *, void *), in single_open_size() argument 56 ret = single_open(file, show, data); in single_open_size() 61 ((struct seq_file *)file->private_data)->buf = buf; in single_open_size() 62 ((struct seq_file *)file->private_data)->size = size; in single_open_size() 124 static ssize_t proc_set_log_level(struct file *file, const char __user *buffer, size_t count, loff_… in proc_set_log_level() argument 171 static ssize_t proc_set_country_chplan_map(struct file *file, const char __user *buffer, size_t cou… in proc_set_country_chplan_map() argument 286 static int rtw_drv_proc_open(struct inode *inode, struct file *file) in rtw_drv_proc_open() argument 294 int res = seq_open(file, hdl->u.seq_op); in rtw_drv_proc_open() 297 ((struct seq_file *)file->private_data)->private = private; in rtw_drv_proc_open() [all …]
|
| /OK3568_Linux_fs/kernel/fs/lockd/ |
| H A D | svcproc.c | 56 struct nlm_file *file = NULL; in nlmsvc_retrieve_args() local 72 error = cast_status(nlm_lookup_file(rqstp, &file, &lock->fh)); in nlmsvc_retrieve_args() 75 *filp = file; in nlmsvc_retrieve_args() 78 lock->fl.fl_file = file->f_file; in nlmsvc_retrieve_args() 116 struct nlm_file *file; in __nlmsvc_proc_test() local 123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test() 127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test() 136 nlm_release_file(file); in __nlmsvc_proc_test() 151 struct nlm_file *file; in __nlmsvc_proc_lock() local 159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock() [all …]
|
| H A D | svc4proc.c | 27 struct nlm_file *file = NULL; in nlm4svc_retrieve_args() local 43 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) in nlm4svc_retrieve_args() 45 *filp = file; in nlm4svc_retrieve_args() 48 lock->fl.fl_file = file->f_file; in nlm4svc_retrieve_args() 86 struct nlm_file *file; in __nlm4svc_proc_test() local 93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test() 97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test() 105 nlm_release_file(file); in __nlm4svc_proc_test() 120 struct nlm_file *file; in __nlm4svc_proc_lock() local 128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock() [all …]
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | bpf_iter.c | 40 static int prepare_seq_file(struct file *file, struct bpf_iter_link *link, 80 static ssize_t bpf_seq_read(struct file *file, char __user *buf, size_t size, in bpf_seq_read() argument 83 struct seq_file *seq = file->private_data; in bpf_seq_read() 232 static int iter_open(struct inode *inode, struct file *file) in iter_open() argument 236 return prepare_seq_file(file, link, __get_seq_info(link)); in iter_open() 239 static int iter_release(struct inode *inode, struct file *file) in iter_release() argument 244 seq = file->private_data; in iter_release() 257 return seq_release_private(inode, file); in iter_release() 542 static int prepare_seq_file(struct file *file, struct bpf_iter_link *link, in prepare_seq_file() argument 560 priv_data = __seq_open_private(file, seq_info->seq_ops, in prepare_seq_file() [all …]
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | mmap.c | 144 struct file *file, struct address_space *mapping) in __remove_shared_vm_struct() argument 147 allow_write_access(file); in __remove_shared_vm_struct() 162 struct file *file = vma->vm_file; in unlink_file_vma() local 164 if (file) { in unlink_file_vma() 165 struct address_space *mapping = file->f_mapping; in unlink_file_vma() 167 __remove_shared_vm_struct(vma, file, mapping); in unlink_file_vma() 698 struct file *file; in __vma_link_file() local 700 file = vma->vm_file; in __vma_link_file() 701 if (file) { in __vma_link_file() 702 struct address_space *mapping = file->f_mapping; in __vma_link_file() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-block-zram | 5 The disksize file is read-write and specifies the disk size 14 The initstate file is read-only and shows the initialization 21 The reset file is write-only and allows resetting the 29 The max_comp_streams file is read-write and specifies the 37 The comp_algorithm file is read-write and lets to show 45 The mem_used_max file is write-only and is used to reset 55 The mem_limit file is write-only and specifies the maximum 64 The compact file is write-only and trigger compaction for 72 The io_stat file is read-only and accumulates device's I/O 75 block layer statistics file format. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pps/ |
| H A D | pps.c | 38 static __poll_t pps_cdev_poll(struct file *file, poll_table *wait) in pps_cdev_poll() argument 40 struct pps_device *pps = file->private_data; in pps_cdev_poll() 42 poll_wait(file, &pps->queue, wait); in pps_cdev_poll() 47 static int pps_cdev_fasync(int fd, struct file *file, int on) in pps_cdev_fasync() argument 49 struct pps_device *pps = file->private_data; in pps_cdev_fasync() 50 return fasync_helper(fd, file, on, &pps->async_queue); in pps_cdev_fasync() 90 static long pps_cdev_ioctl(struct file *file, in pps_cdev_ioctl() argument 93 struct pps_device *pps = file->private_data; in pps_cdev_ioctl() 249 static long pps_cdev_compat_ioctl(struct file *file, in pps_cdev_compat_ioctl() argument 252 struct pps_device *pps = file->private_data; in pps_cdev_compat_ioctl() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-daemons/ippool/ |
| H A D | ippool_1.3.bb | 15 file://runtest.sh \ 16 file://ippool.service \ 17 file://ippool_usl_timer.patch \ 18 file://ippool_parallel_make_and_pic.patch \ 19 file://ippool_init.d.patch \ 20 file://always_syslog.patch \ 21 file://makefile-add-ldflags.patch \ 22 file://0001-usl_timer-Check-for-return-value-of-write-API.patch \ 23 file://0001-Respect-flags-from-env.patch \ 24 file://0001-read-returns-ssize_t.patch \ [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | msr.c | 53 static ssize_t msr_read(struct file *file, char __user *buf, in msr_read() argument 59 int cpu = iminor(file_inode(file)); in msr_read() 111 static ssize_t msr_write(struct file *file, const char __user *buf, in msr_write() argument 117 int cpu = iminor(file_inode(file)); in msr_write() 151 static long msr_ioctl(struct file *file, unsigned int ioc, unsigned long arg) in msr_ioctl() argument 155 int cpu = iminor(file_inode(file)); in msr_ioctl() 160 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl() 176 if (!(file->f_mode & FMODE_WRITE)) { in msr_ioctl() 209 static int msr_open(struct inode *inode, struct file *file) in msr_open() argument 211 unsigned int cpu = iminor(file_inode(file)); in msr_open()
|
| /OK3568_Linux_fs/kernel/drivers/staging/vc04_services/interface/vchiq_arm/ |
| H A D | vchiq_debugfs.c | 72 static int debugfs_log_open(struct inode *inode, struct file *file) in debugfs_log_open() argument 74 return single_open(file, debugfs_log_show, inode->i_private); in debugfs_log_open() 77 static ssize_t debugfs_log_write(struct file *file, in debugfs_log_write() argument 81 struct seq_file *f = (struct seq_file *)file->private_data; in debugfs_log_write() 141 static int debugfs_trace_open(struct inode *inode, struct file *file) in debugfs_trace_open() argument 143 return single_open(file, debugfs_trace_show, inode->i_private); in debugfs_trace_open() 146 static ssize_t debugfs_trace_write(struct file *file, in debugfs_trace_write() argument 150 struct seq_file *f = (struct seq_file *)file->private_data; in debugfs_trace_write()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/sudo/ |
| H A D | sudo.inc | 7 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5100e20d35f9015f9eef6bdb27ba194f \ 8 … file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \ 9 … file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \ 10 … file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \ 11 … file://lib/util/getcwd.c;beginline=2;endline=27;md5=50f8d9667750e18dea4e84a935c12009 \ 12 … file://lib/util/glob.c;beginline=2;endline=31;md5=2852f68687544e3eb8a0a61665506f0e \ 13 … file://lib/util/snprintf.c;beginline=3;endline=33;md5=b70df6179969e38fcf68da91b53b8029 \ 14 … file://include/sudo_queue.h;beginline=2;endline=27;md5=ad578e9664d17a010b63e4bc0576ee8d \ 15 … file://lib/util/inet_pton.c;beginline=3;endline=17;md5=27785c9f5835093eda42aa0816a2d0b4 \ 16 … file://lib/util/arc4random.c;beginline=3;endline=20;md5=ced8636ecefa2ba907cfe390bc3bd964 \ [all …]
|