/linux-4.1.27/tools/testing/selftests/efivarfs/ |
H A D | Makefile | 3 test_objs = open-unlink create-read
|
H A D | create-read.c | 25 fd = open(path, O_RDWR | O_CREAT, 0600); main() 27 perror("open(O_WRONLY)"); main()
|
H A D | open-unlink.c | 19 fd = open(path, O_RDONLY); set_immutable() 50 fd = open(path, O_RDONLY); get_immutable() 88 fd = open(path, O_WRONLY | O_CREAT, 0600); main() 90 perror("open(O_WRONLY)"); main() 114 fd = open(path, O_RDONLY); main() 116 perror("open"); main()
|
/linux-4.1.27/arch/sh/include/mach-se/mach/ |
H A D | mrshpc.h | 18 * PC-Card window open mrshpc_setup_windows() 21 /* common window open */ mrshpc_setup_windows() 30 /* attribute window open */ mrshpc_setup_windows() 39 /* I/O window open */ mrshpc_setup_windows()
|
/linux-4.1.27/Documentation/watchdog/src/ |
H A D | watchdog-simple.c | 8 int fd = open("/dev/watchdog", O_WRONLY); main()
|
/linux-4.1.27/sound/isa/sb/ |
H A D | sb8_midi.c | 54 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { snd_sb8dsp_midi_interrupt() 73 if (chip->open & ~valid_open_flags) { snd_sb8dsp_midi_input_open() 77 chip->open |= SB_OPEN_MIDI_INPUT; snd_sb8dsp_midi_input_open() 79 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { snd_sb8dsp_midi_input_open() 100 if (chip->open & ~valid_open_flags) { snd_sb8dsp_midi_output_open() 104 chip->open |= SB_OPEN_MIDI_OUTPUT; snd_sb8dsp_midi_output_open() 106 if (!(chip->open & SB_OPEN_MIDI_INPUT)) { snd_sb8dsp_midi_output_open() 124 chip->open &= ~(SB_OPEN_MIDI_INPUT | SB_OPEN_MIDI_INPUT_TRIGGER); snd_sb8dsp_midi_input_close() 126 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { snd_sb8dsp_midi_input_close() 142 chip->open &= ~(SB_OPEN_MIDI_OUTPUT | SB_OPEN_MIDI_OUTPUT_TRIGGER); snd_sb8dsp_midi_output_close() 144 if (!(chip->open & SB_OPEN_MIDI_INPUT)) { snd_sb8dsp_midi_output_close() 161 if (!(chip->open & SB_OPEN_MIDI_INPUT_TRIGGER)) { snd_sb8dsp_midi_input_trigger() 164 chip->open |= SB_OPEN_MIDI_INPUT_TRIGGER; snd_sb8dsp_midi_input_trigger() 167 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { snd_sb8dsp_midi_input_trigger() 170 chip->open &= ~SB_OPEN_MIDI_INPUT_TRIGGER; snd_sb8dsp_midi_input_trigger() 188 chip->open &= ~SB_OPEN_MIDI_OUTPUT_TRIGGER; snd_sb8dsp_midi_output_write() 232 if (!(chip->open & SB_OPEN_MIDI_OUTPUT_TRIGGER)) { snd_sb8dsp_midi_output_trigger() 237 chip->open |= SB_OPEN_MIDI_OUTPUT_TRIGGER; snd_sb8dsp_midi_output_trigger() 240 if (chip->open & SB_OPEN_MIDI_OUTPUT_TRIGGER) { snd_sb8dsp_midi_output_trigger() 241 chip->open &= ~SB_OPEN_MIDI_OUTPUT_TRIGGER; snd_sb8dsp_midi_output_trigger() 252 .open = snd_sb8dsp_midi_output_open, 259 .open = snd_sb8dsp_midi_input_open,
|
/linux-4.1.27/arch/um/drivers/ |
H A D | null.c | 27 fd = open(DEV_NULL, O_RDWR); null_open() 43 .open = null_open,
|
H A D | pty.c | 50 printk(UM_KERN_ERR "open_pts : Failed to open pts\n"); pts_open() 94 master = open(line, O_RDWR); getmaster() 144 .open = pty_open, 157 .open = pts_open,
|
H A D | tty.c | 52 fd = open(data->dev, mode); tty_open() 73 .open = tty_open,
|
H A D | slip_user.c | 134 printk(UM_KERN_ERR "slip-open : Failed to open pty, err = %d\n", slip_open() 140 err = open(ptsname(mfd), O_RDWR, 0); slip_open() 142 printk(UM_KERN_ERR "Couldn't open tty for slip line, " slip_open() 244 .open = slip_open,
|
H A D | vde_user.c | 44 printk(UM_KERN_WARNING "vde_open - we have no VDECONN to open"); vde_user_open() 66 .open = vde_user_open,
|
H A D | hostaudio_kern.c | 189 printk(KERN_DEBUG "hostaudio: open called (host: %s)\n", dsp); hostaudio_open() 251 printk(KERN_DEBUG "hostmixer: open called (host: %s)\n", mixer); hostmixer_open_mixdev() 271 printk(KERN_ERR "hostaudio_open_mixdev failed to open '%s', " hostmixer_open_mixdev() 306 .open = hostaudio_open, 314 .open = hostmixer_open_mixdev,
|
/linux-4.1.27/arch/x86/realmode/rm/ |
H A D | realmode.h | 9 * This must be open-coded since gas will choke on using a
|
/linux-4.1.27/fs/proc/ |
H A D | cmdline.c | 18 .open = cmdline_proc_open,
|
H A D | cpuinfo.c | 13 .open = cpuinfo_open,
|
H A D | softirqs.c | 33 .open = softirqs_open,
|
H A D | version.c | 23 .open = version_proc_open,
|
H A D | interrupts.c | 42 .open = interrupts_open,
|
H A D | loadavg.c | 34 .open = loadavg_proc_open,
|
H A D | devices.c | 59 .open = devinfo_open,
|
H A D | kmsg.c | 54 .open = kmsg_open,
|
H A D | uptime.c | 41 .open = uptime_proc_open,
|
H A D | inode.c | 311 int (*open)(struct inode *, struct file *); proc_reg_open() 316 * What for, you ask? Well, we can have open, rmmod, remove_proc_entry proc_reg_open() 333 open = pde->proc_fops->open; proc_reg_open() 336 if (open) proc_reg_open() 337 rv = open(inode, file); proc_reg_open() 379 .open = proc_reg_open, 392 .open = proc_reg_open,
|
/linux-4.1.27/tools/cgroup/ |
H A D | cgroup_event_listener.c | 33 cfd = open(argv[1], O_RDONLY); main() 35 err(1, "Cannot open %s", argv[1]); main() 42 event_control = open(event_control_path, O_WRONLY); main() 44 err(1, "Cannot open %s", event_control_path); main()
|
/linux-4.1.27/tools/perf/util/ |
H A D | find-vdso-map.c | 9 fprintf(stderr, "vdso: cannot open maps\n"); find_vdso_map()
|
H A D | data.c | 55 fd = open(file->path, O_RDONLY); open_file_read() 59 pr_err("failed to open %s: %s", file->path, open_file_read() 98 fd = open(file->path, O_CREAT|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); open_file_write() 101 pr_err("failed to open %s : %s\n", file->path, open_file_write()
|
H A D | zlib.c | 29 input_fd = open(input, O_RDONLY); gzip_decompress_to_file()
|
/linux-4.1.27/tools/usb/usbip/libsrc/ |
H A D | sysfs_utils.c | 15 fd = open(attr_path, O_WRONLY); write_sysfs_attribute()
|
/linux-4.1.27/arch/ia64/sn/kernel/sn2/ |
H A D | sn_proc_fs.c | 65 .open = partition_id_open, 72 .open = system_serial_number_open, 79 .open = licenseID_open, 86 .open = coherence_id_open, 93 .open = sn_topology_open,
|
/linux-4.1.27/tools/perf/tests/ |
H A D | dso-data.c | 174 TEST_ASSERT_VAL("failed to open fd directory", dir); open_files_cnt() 249 /* and this is now our dso open FDs limit */ test__dso_data_cache() 259 * file and keep it open (unless open file limit). test__dso_data_cache() 274 /* verify the first one is already open */ test__dso_data_cache() 275 TEST_ASSERT_VAL("dsos[0] is not open", dsos[0]->data.fd != -1); test__dso_data_cache() 277 /* open +1 dso to reach the allowed limit */ test__dso_data_cache() 315 /* Make sure we are able to open 3 fds anyway */ test__dso_data_reopen() 321 /* open dso_0 */ test__dso_data_reopen() 325 /* open dso_1 */ test__dso_data_reopen() 330 * open extra file descriptor and we just test__dso_data_reopen() 333 fd_extra = open("/dev/null", O_RDONLY); test__dso_data_reopen() 334 TEST_ASSERT_VAL("failed to open extra fd", fd_extra > 0); test__dso_data_reopen() 336 /* open dso_2 */ test__dso_data_reopen() 346 /* open dso_0 */ test__dso_data_reopen()
|
H A D | open-syscall.c | 31 pr_debug("failed to open counter: %s, " test__open_syscall_event() 38 fd = open("/etc/passwd", O_RDONLY); test__open_syscall_event()
|
H A D | open-syscall-all-cpus.c | 42 pr_debug("failed to open counter: %s, " test__open_syscall_event_on_all_cpus() 69 fd = open("/etc/passwd", O_RDONLY); test__open_syscall_event_on_all_cpus()
|
H A D | sw-clock.c | 15 * This test will open software clock events (cpu-clock, task-clock) 65 pr_debug("Couldn't open evlist: %s\nHint: check %s, using %" PRIu64 " in this test.\n", __test__sw_clock_freq()
|
/linux-4.1.27/Documentation/timers/ |
H A D | hpet_example.c | 32 "open-close", 88 fd = open(argv[0], O_RDONLY); hpet_open_close() 90 fprintf(stderr, "hpet_open_close: open failed\n"); hpet_open_close() 108 fd = open(argv[0], O_RDONLY); hpet_info() 110 fprintf(stderr, "hpet_info: open of %s failed\n", argv[0]); hpet_info() 148 fd = open(argv[0], O_RDONLY); hpet_poll() 151 fprintf(stderr, "hpet_poll: open of %s failed\n", argv[0]); hpet_poll() 242 fd = open(argv[0], O_RDONLY); hpet_fasync() 245 fprintf(stderr, "hpet_fasync: failed to open %s\n", argv[0]); hpet_fasync()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs42proc.c | 17 struct nfs_open_context *open; nfs42_set_rw_stateid() local 21 open = get_nfs_open_context(nfs_file_open_context(file)); nfs42_set_rw_stateid() 22 lock = nfs_get_lock_context(open); nfs42_set_rw_stateid() 24 put_nfs_open_context(open); nfs42_set_rw_stateid() 28 ret = nfs4_set_rw_stateid(dst, open, lock, fmode); nfs42_set_rw_stateid() 31 put_nfs_open_context(open); nfs42_set_rw_stateid()
|
H A D | nfs4file.c | 39 * -EOPENSTALE. The VFS will retry the lookup/create/open. nfs4_file_open() 42 dprintk("NFS: open file(%pd2)\n", dentry); nfs4_file_open() 176 .open = nfs4_file_open,
|
/linux-4.1.27/fs/nfsd/ |
H A D | nfs4proc.c | 65 * XXX: We should really fail the whole open, but we may nfsd4_security_inode_setsecctx() 131 struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes() 135 if (open->op_create == NFS4_OPEN_CREATE) { nfsd4_check_open_attributes() 136 if (open->op_createmode == NFS4_CREATE_UNCHECKED nfsd4_check_open_attributes() 137 || open->op_createmode == NFS4_CREATE_GUARDED) nfsd4_check_open_attributes() 139 open->op_bmval, nfsd_attrmask); nfsd4_check_open_attributes() 140 else if (open->op_createmode == NFS4_CREATE_EXCLUSIVE4_1) nfsd4_check_open_attributes() 142 open->op_bmval, nfsd41_ex_attrmask); nfsd4_check_open_attributes() 149 is_create_with_attrs(struct nfsd4_open *open) is_create_with_attrs() argument 151 return open->op_create == NFS4_OPEN_CREATE is_create_with_attrs() 152 && (open->op_createmode == NFS4_CREATE_UNCHECKED is_create_with_attrs() 153 || open->op_createmode == NFS4_CREATE_GUARDED is_create_with_attrs() 154 || open->op_createmode == NFS4_CREATE_EXCLUSIVE4_1); is_create_with_attrs() 170 * We should probably fail the whole open at this point, do_set_nfs4_acl() 188 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) do_open_permission() argument 192 if (open->op_truncate && do_open_permission() 193 !(open->op_share_access & NFS4_SHARE_ACCESS_WRITE)) do_open_permission() 198 if (open->op_share_access & NFS4_SHARE_ACCESS_READ) do_open_permission() 200 if (open->op_share_access & NFS4_SHARE_ACCESS_WRITE) do_open_permission() 202 if (open->op_share_deny & NFS4_SHARE_DENY_READ) do_open_permission() 222 * the right thing on attempts to open something other than a nfsd_check_obj_isreg() 228 static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) nfsd4_set_open_owner_reply_cache() argument 232 fh_copy_shallow(&open->op_openowner->oo_owner.so_replay.rp_openfh, nfsd4_set_open_owner_reply_cache() 237 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) do_open_lookup() argument 247 open->op_truncate = 0; do_open_lookup() 249 if (open->op_create) { do_open_lookup() 269 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, do_open_lookup() 270 open->op_fname.len, &open->op_iattr, do_open_lookup() 271 *resfh, open->op_createmode, do_open_lookup() 272 (u32 *)open->op_verf.data, do_open_lookup() 273 &open->op_truncate, &open->op_created); do_open_lookup() 275 if (!status && open->op_label.len) do_open_lookup() 276 nfsd4_security_inode_setsecctx(*resfh, &open->op_label, open->op_bmval); do_open_lookup() 283 if (open->op_createmode == NFS4_CREATE_EXCLUSIVE && status == 0) do_open_lookup() 284 open->op_bmval[1] = (FATTR4_WORD1_TIME_ACCESS | do_open_lookup() 294 open->op_fname.data, open->op_fname.len, *resfh); do_open_lookup() 301 if (is_create_with_attrs(open) && open->op_acl != NULL) do_open_lookup() 302 do_set_nfs4_acl(rqstp, *resfh, open->op_acl, open->op_bmval); do_open_lookup() 304 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh); do_open_lookup() 306 if (open->op_created || do_open_lookup() 307 open->op_claim_type == NFS4_OPEN_CLAIM_DELEGATE_CUR) do_open_lookup() 309 status = do_open_permission(rqstp, *resfh, open, accmode); do_open_lookup() 310 set_change_info(&open->op_cinfo, current_fh); do_open_lookup() 316 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) do_open_fhandle() argument 326 memset(&open->op_cinfo, 0, sizeof(struct nfsd4_change_info)); do_open_fhandle() 328 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); do_open_fhandle() 330 open->op_truncate = (open->op_iattr.ia_valid & ATTR_SIZE) && do_open_fhandle() 331 (open->op_iattr.ia_size == 0); do_open_fhandle() 334 * open that it *already* performed locally, some time ago. We do_open_fhandle() 337 * In the case of a CLAIM_FH open, on the other hand, the client do_open_fhandle() 341 if (open->op_claim_type == NFS4_OPEN_CLAIM_DELEG_CUR_FH) do_open_fhandle() 344 status = do_open_permission(rqstp, current_fh, open, accmode); do_open_fhandle() 361 struct nfsd4_open *open) nfsd4_open() 370 (int)open->op_fname.len, open->op_fname.data, nfsd4_open() 371 open->op_openowner); nfsd4_open() 374 if (open->op_create && open->op_claim_type != NFS4_OPEN_CLAIM_NULL) nfsd4_open() 377 open->op_created = 0; nfsd4_open() 385 open->op_claim_type != NFS4_OPEN_CLAIM_PREVIOUS) nfsd4_open() 389 copy_clientid(&open->op_clientid, cstate->session); nfsd4_open() 393 status = nfsd4_process_open1(&resp->cstate, open, nn); nfsd4_open() 395 struct nfs4_replay *rp = &open->op_openowner->oo_owner.so_replay; nfsd4_open() 408 if (open->op_xdr_error) { nfsd4_open() 409 status = open->op_xdr_error; nfsd4_open() 413 status = nfsd4_check_open_attributes(rqstp, cstate, open); nfsd4_open() 420 if (locks_in_grace(net) && open->op_claim_type != NFS4_OPEN_CLAIM_PREVIOUS) nfsd4_open() 423 if (!locks_in_grace(net) && open->op_claim_type == NFS4_OPEN_CLAIM_PREVIOUS) nfsd4_open() 426 switch (open->op_claim_type) { nfsd4_open() 429 status = do_open_lookup(rqstp, cstate, open, &resfh); nfsd4_open() 434 status = nfs4_check_open_reclaim(&open->op_clientid, nfsd4_open() 438 open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED; nfsd4_open() 441 status = do_open_fhandle(rqstp, cstate, open); nfsd4_open() 449 open->op_claim_type); nfsd4_open() 454 open->op_claim_type); nfsd4_open() 460 * successful, it (1) truncates the file if open->op_truncate was nfsd4_open() 461 * set, (2) sets open->op_stateid, (3) sets open->op_delegation. nfsd4_open() 463 status = nfsd4_process_open2(rqstp, resfh, open); nfsd4_open() 464 WARN(status && open->op_created, nfsd4_open() 465 "nfsd4_process_open2 failed to open newly-created file! status=%u\n", nfsd4_open() 473 nfsd4_cleanup_open_state(cstate, open); nfsd4_open() 486 struct nfsd4_open *open = (struct nfsd4_open *)&op->u; nfsd4_open_omfg() local 492 open->op_xdr_error = op->status; nfsd4_open_omfg() 493 return nfsd4_open(rqstp, cstate, open); nfsd4_open_omfg() 1482 * (since sequence numbers provide EOS for open, lock, etc in 130 nfsd4_check_open_attributes(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes() argument 360 nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_open() argument
|
H A D | lockd.c | 24 * Note: we hold the dentry use count while the file is open. 62 .fopen = nlm_fopen, /* open file for locking */
|
H A D | nfs4state.c | 88 * the refcount on the open stateid to drop. 228 find_openstateowner_str_locked(unsigned int hashval, struct nfsd4_open *open, find_openstateowner_str_locked() argument 239 if (same_owner_str(so, &open->op_owner)) find_openstateowner_str_locked() 246 find_openstateowner_str(unsigned int hashval, struct nfsd4_open *open, find_openstateowner_str() argument 252 oo = find_openstateowner_str_locked(hashval, open, clp); find_openstateowner_str() 371 /* hash tables for lock and open owners */ 477 * Allocate a new open/delegation state counter. This is needed for 3365 alloc_init_open_stateowner(unsigned int strhashval, struct nfsd4_open *open, alloc_init_open_stateowner() argument 3371 oo = alloc_stateowner(openowner_slab, &open->op_owner, clp); alloc_init_open_stateowner() 3376 oo->oo_owner.so_seqid = open->op_seqid; alloc_init_open_stateowner() 3384 ret = find_openstateowner_str_locked(strhashval, open, clp); alloc_init_open_stateowner() 3394 static void init_open_stateid(struct nfs4_ol_stateid *stp, struct nfs4_file *fp, struct nfsd4_open *open) { init_open_stateid() argument 3395 struct nfs4_openowner *oo = open->op_openowner; init_open_stateid() 3563 * Race: client probably got cb_recall before open reply nfsd4_cb_recall_done() 3704 struct nfsd4_open *open, struct nfsd_net *nn) nfsd4_process_open1() 3706 clientid_t *clientid = &open->op_clientid; nfsd4_process_open1() 3712 if (STALE_CLIENTID(&open->op_clientid, nn)) nfsd4_process_open1() 3718 open->op_file = nfsd4_alloc_file(); nfsd4_process_open1() 3719 if (open->op_file == NULL) nfsd4_process_open1() 3727 strhashval = ownerstr_hashval(&open->op_owner); nfsd4_process_open1() 3728 oo = find_openstateowner_str(strhashval, open, clp); nfsd4_process_open1() 3729 open->op_openowner = oo; nfsd4_process_open1() 3736 open->op_openowner = NULL; nfsd4_process_open1() 3739 status = nfsd4_check_seqid(cstate, &oo->oo_owner, open->op_seqid); nfsd4_process_open1() 3744 oo = alloc_init_open_stateowner(strhashval, open, cstate); nfsd4_process_open1() 3747 open->op_openowner = oo; nfsd4_process_open1() 3749 open->op_stp = nfs4_alloc_open_stateid(clp); nfsd4_process_open1() 3750 if (!open->op_stp) nfsd4_process_open1() 3755 open->op_odstate = alloc_clnt_odstate(clp); nfsd4_process_open1() 3756 if (!open->op_odstate) nfsd4_process_open1() 3787 static bool nfsd4_is_deleg_cur(struct nfsd4_open *open) nfsd4_is_deleg_cur() argument 3789 return open->op_claim_type == NFS4_OPEN_CLAIM_DELEGATE_CUR || nfsd4_is_deleg_cur() 3790 open->op_claim_type == NFS4_OPEN_CLAIM_DELEG_CUR_FH; nfsd4_is_deleg_cur() 3794 nfs4_check_deleg(struct nfs4_client *cl, struct nfsd4_open *open, nfs4_check_deleg() argument 3801 deleg = find_deleg_stateid(cl, &open->op_delegate_stateid); nfs4_check_deleg() 3804 flags = share_access_to_flags(open->op_share_access); nfs4_check_deleg() 3812 if (!nfsd4_is_deleg_cur(open)) nfs4_check_deleg() 3816 open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED; nfs4_check_deleg() 3821 nfsd4_find_existing_open(struct nfs4_file *fp, struct nfsd4_open *open) nfsd4_find_existing_open() argument 3824 struct nfs4_openowner *oo = open->op_openowner; nfsd4_find_existing_open() 3854 struct nfsd4_open *open) nfsd4_truncate() 3860 if (!open->op_truncate) nfsd4_truncate() 3862 if (!(open->op_share_access & NFS4_SHARE_ACCESS_WRITE)) nfsd4_truncate() 3869 struct nfsd4_open *open) nfs4_get_vfs_file() 3873 int oflag = nfs4_access_to_omode(open->op_share_access); nfs4_get_vfs_file() 3874 int access = nfs4_access_to_access(open->op_share_access); nfs4_get_vfs_file() 3883 status = nfs4_file_check_deny(fp, open->op_share_deny); nfs4_get_vfs_file() 3890 status = nfs4_file_get_access(fp, open->op_share_access); nfs4_get_vfs_file() 3898 set_access(open->op_share_access, stp); nfs4_get_vfs_file() 3902 set_deny(open->op_share_deny, stp); nfs4_get_vfs_file() 3903 fp->fi_share_deny |= (open->op_share_deny & NFS4_SHARE_DENY_BOTH); nfs4_get_vfs_file() 3920 status = nfsd4_truncate(rqstp, cur_fh, open); nfs4_get_vfs_file() 3927 nfs4_file_put_access(fp, open->op_share_access); nfs4_get_vfs_file() 3933 nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_ol_stateid *stp, struct nfsd4_open *open) nfs4_upgrade_open() argument 3938 if (!test_access(open->op_share_access, stp)) nfs4_upgrade_open() 3939 return nfs4_get_vfs_file(rqstp, fp, cur_fh, stp, open); nfs4_upgrade_open() 3943 status = nfs4_file_check_deny(fp, open->op_share_deny); nfs4_upgrade_open() 3946 set_deny(open->op_share_deny, stp); nfs4_upgrade_open() 3948 (open->op_share_deny & NFS4_SHARE_DENY_BOTH); nfs4_upgrade_open() 3955 status = nfsd4_truncate(rqstp, cur_fh, open); nfs4_upgrade_open() 3962 nfs4_set_claim_prev(struct nfsd4_open *open, bool has_session) nfs4_set_claim_prev() argument 3964 open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED; nfs4_set_claim_prev() 4111 static void nfsd4_open_deleg_none_ext(struct nfsd4_open *open, int status) nfsd4_open_deleg_none_ext() argument 4113 open->op_delegate_type = NFS4_OPEN_DELEGATE_NONE_EXT; nfsd4_open_deleg_none_ext() 4115 open->op_why_no_deleg = WND4_CONTENTION; nfsd4_open_deleg_none_ext() 4117 open->op_why_no_deleg = WND4_RESOURCE; nfsd4_open_deleg_none_ext() 4118 switch (open->op_deleg_want) { nfsd4_open_deleg_none_ext() 4124 open->op_why_no_deleg = WND4_CANCELLED; nfsd4_open_deleg_none_ext() 4139 nfs4_open_delegation(struct svc_fh *fh, struct nfsd4_open *open, nfs4_open_delegation() argument 4149 open->op_recall = 0; nfs4_open_delegation() 4150 switch (open->op_claim_type) { nfs4_open_delegation() 4153 open->op_recall = 1; nfs4_open_delegation() 4154 if (open->op_delegate_type != NFS4_OPEN_DELEGATE_READ) nfs4_open_delegation() 4174 if (open->op_share_access & NFS4_SHARE_ACCESS_WRITE) nfs4_open_delegation() 4176 if (open->op_create == NFS4_OPEN_CREATE) nfs4_open_delegation() 4186 memcpy(&open->op_delegate_stateid, &dp->dl_stid.sc_stateid, sizeof(dp->dl_stid.sc_stateid)); nfs4_open_delegation() 4190 open->op_delegate_type = NFS4_OPEN_DELEGATE_READ; nfs4_open_delegation() 4194 open->op_delegate_type = NFS4_OPEN_DELEGATE_NONE; nfs4_open_delegation() 4195 if (open->op_claim_type == NFS4_OPEN_CLAIM_PREVIOUS && nfs4_open_delegation() 4196 open->op_delegate_type != NFS4_OPEN_DELEGATE_NONE) { nfs4_open_delegation() 4198 open->op_recall = 1; nfs4_open_delegation() 4202 if (open->op_deleg_want) nfs4_open_delegation() 4203 nfsd4_open_deleg_none_ext(open, status); nfs4_open_delegation() 4207 static void nfsd4_deleg_xgrade_none_ext(struct nfsd4_open *open, nfsd4_deleg_xgrade_none_ext() argument 4210 if (open->op_deleg_want == NFS4_SHARE_WANT_READ_DELEG && nfsd4_deleg_xgrade_none_ext() 4212 open->op_delegate_type = NFS4_OPEN_DELEGATE_NONE_EXT; nfsd4_deleg_xgrade_none_ext() 4213 open->op_why_no_deleg = WND4_NOT_SUPP_DOWNGRADE; nfsd4_deleg_xgrade_none_ext() 4214 } else if (open->op_deleg_want == NFS4_SHARE_WANT_WRITE_DELEG && nfsd4_deleg_xgrade_none_ext() 4216 open->op_delegate_type = NFS4_OPEN_DELEGATE_NONE_EXT; nfsd4_deleg_xgrade_none_ext() 4217 open->op_why_no_deleg = WND4_NOT_SUPP_UPGRADE; nfsd4_deleg_xgrade_none_ext() 4226 nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) nfsd4_process_open2() argument 4229 struct nfs4_client *cl = open->op_openowner->oo_owner.so_client; nfsd4_process_open2() 4236 * Lookup file; if found, lookup stateid and check open request, nfsd4_process_open2() 4240 fp = find_or_add_file(open->op_file, ¤t_fh->fh_handle); nfsd4_process_open2() 4241 if (fp != open->op_file) { nfsd4_process_open2() 4242 status = nfs4_check_deleg(cl, open, &dp); nfsd4_process_open2() 4245 stp = nfsd4_find_existing_open(fp, open); nfsd4_process_open2() 4247 open->op_file = NULL; nfsd4_process_open2() 4249 if (nfsd4_is_deleg_cur(open)) nfsd4_process_open2() 4260 status = nfs4_upgrade_open(rqstp, fp, current_fh, stp, open); nfsd4_process_open2() 4266 stp = open->op_stp; nfsd4_process_open2() 4267 open->op_stp = NULL; nfsd4_process_open2() 4268 init_open_stateid(stp, fp, open); nfsd4_process_open2() 4270 status = nfs4_get_vfs_file(rqstp, fp, current_fh, stp, open); nfsd4_process_open2() 4278 open->op_odstate); nfsd4_process_open2() 4279 if (stp->st_clnt_odstate == open->op_odstate) nfsd4_process_open2() 4280 open->op_odstate = NULL; nfsd4_process_open2() 4283 memcpy(&open->op_stateid, &stp->st_stid.sc_stateid, sizeof(stateid_t)); nfsd4_process_open2() 4287 if (open->op_deleg_want & NFS4_SHARE_WANT_NO_DELEG) { nfsd4_process_open2() 4288 open->op_delegate_type = NFS4_OPEN_DELEGATE_NONE_EXT; nfsd4_process_open2() 4289 open->op_why_no_deleg = WND4_NOT_WANTED; nfsd4_process_open2() 4298 nfs4_open_delegation(current_fh, open, stp); nfsd4_process_open2() 4306 if (open->op_delegate_type == NFS4_OPEN_DELEGATE_NONE && dp && nfsd4_process_open2() 4307 open->op_deleg_want) nfsd4_process_open2() 4308 nfsd4_deleg_xgrade_none_ext(open, dp); nfsd4_process_open2() 4312 if (status == 0 && open->op_claim_type == NFS4_OPEN_CLAIM_PREVIOUS) nfsd4_process_open2() 4313 nfs4_set_claim_prev(open, nfsd4_has_session(&resp->cstate)); nfsd4_process_open2() 4315 * To finish the open response, we just need to set the rflags. nfsd4_process_open2() 4317 open->op_rflags = NFS4_OPEN_RESULT_LOCKTYPE_POSIX; nfsd4_process_open2() 4318 if (!(open->op_openowner->oo_flags & NFS4_OO_CONFIRMED) && nfsd4_process_open2() 4320 open->op_rflags |= NFS4_OPEN_RESULT_CONFIRM; nfsd4_process_open2() 4330 struct nfsd4_open *open) nfsd4_cleanup_open_state() 4332 if (open->op_openowner) { nfsd4_cleanup_open_state() 4333 struct nfs4_stateowner *so = &open->op_openowner->oo_owner; nfsd4_cleanup_open_state() 4338 if (open->op_file) nfsd4_cleanup_open_state() 4339 kmem_cache_free(file_slab, open->op_file); nfsd4_cleanup_open_state() 4340 if (open->op_stp) nfsd4_cleanup_open_state() 4341 nfs4_put_stid(&open->op_stp->st_stid); nfsd4_cleanup_open_state() 4342 if (open->op_odstate) nfsd4_cleanup_open_state() 4343 kmem_cache_free(odstate_slab, open->op_odstate); nfsd4_cleanup_open_state() 4527 /* For lock stateid's, we test the parent open, not the lock: */ nfs4_check_openmode() 5478 /* validate and update open stateid and open seqid */ nfsd4_lock() 5623 * so we do a temporary open here just to get an open file to pass to 6567 * Since the lifetime of a delegation isn't limited to that of an open, a 6775 nfsd4_set_openstateid(struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_set_openstateid() argument 6777 put_stateid(cstate, &open->op_stateid); nfsd4_set_openstateid() 3703 nfsd4_process_open1(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct nfsd_net *nn) nfsd4_process_open1() argument 3853 nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, struct nfsd4_open *open) nfsd4_truncate() argument 3867 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_ol_stateid *stp, struct nfsd4_open *open) nfs4_get_vfs_file() argument 4329 nfsd4_cleanup_open_state(struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_cleanup_open_state() argument
|
H A D | nfs4xdr.c | 849 nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) nfsd4_decode_open() argument 854 memset(open->op_bmval, 0, sizeof(open->op_bmval)); nfsd4_decode_open() 855 open->op_iattr.ia_valid = 0; nfsd4_decode_open() 856 open->op_openowner = NULL; nfsd4_decode_open() 858 open->op_xdr_error = 0; nfsd4_decode_open() 861 open->op_seqid = be32_to_cpup(p++); nfsd4_decode_open() 863 status = nfsd4_decode_share_access(argp, &open->op_share_access, nfsd4_decode_open() 864 &open->op_deleg_want, &dummy); nfsd4_decode_open() 867 status = nfsd4_decode_share_deny(argp, &open->op_share_deny); nfsd4_decode_open() 871 COPYMEM(&open->op_clientid, sizeof(clientid_t)); nfsd4_decode_open() 872 status = nfsd4_decode_opaque(argp, &open->op_owner); nfsd4_decode_open() 876 open->op_create = be32_to_cpup(p++); nfsd4_decode_open() 877 switch (open->op_create) { nfsd4_decode_open() 882 open->op_createmode = be32_to_cpup(p++); nfsd4_decode_open() 883 switch (open->op_createmode) { nfsd4_decode_open() 886 status = nfsd4_decode_fattr(argp, open->op_bmval, nfsd4_decode_open() 887 &open->op_iattr, &open->op_acl, &open->op_label); nfsd4_decode_open() 893 COPYMEM(open->op_verf.data, NFS4_VERIFIER_SIZE); nfsd4_decode_open() 899 COPYMEM(open->op_verf.data, NFS4_VERIFIER_SIZE); nfsd4_decode_open() 900 status = nfsd4_decode_fattr(argp, open->op_bmval, nfsd4_decode_open() 901 &open->op_iattr, &open->op_acl, &open->op_label); nfsd4_decode_open() 915 open->op_claim_type = be32_to_cpup(p++); nfsd4_decode_open() 916 switch (open->op_claim_type) { nfsd4_decode_open() 920 open->op_fname.len = be32_to_cpup(p++); nfsd4_decode_open() 921 READ_BUF(open->op_fname.len); nfsd4_decode_open() 922 SAVEMEM(open->op_fname.data, open->op_fname.len); nfsd4_decode_open() 923 if ((status = check_filename(open->op_fname.data, open->op_fname.len))) nfsd4_decode_open() 928 open->op_delegate_type = be32_to_cpup(p++); nfsd4_decode_open() 931 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); nfsd4_decode_open() 935 open->op_fname.len = be32_to_cpup(p++); nfsd4_decode_open() 936 READ_BUF(open->op_fname.len); nfsd4_decode_open() 937 SAVEMEM(open->op_fname.data, open->op_fname.len); nfsd4_decode_open() 938 if ((status = check_filename(open->op_fname.data, open->op_fname.len))) nfsd4_decode_open() 950 status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); nfsd4_decode_open() 3130 * return the conflicting open: nfsd4_encode_lock_denied() 3206 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) nfsd4_encode_open() argument 3214 nfserr = nfsd4_encode_stateid(xdr, &open->op_stateid); nfsd4_encode_open() 3220 p = encode_cinfo(p, &open->op_cinfo); nfsd4_encode_open() 3221 *p++ = cpu_to_be32(open->op_rflags); nfsd4_encode_open() 3223 *p++ = cpu_to_be32(open->op_bmval[0]); nfsd4_encode_open() 3224 *p++ = cpu_to_be32(open->op_bmval[1]); nfsd4_encode_open() 3225 *p++ = cpu_to_be32(open->op_delegate_type); nfsd4_encode_open() 3227 switch (open->op_delegate_type) { nfsd4_encode_open() 3231 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); nfsd4_encode_open() 3237 *p++ = cpu_to_be32(open->op_recall); nfsd4_encode_open() 3248 nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); nfsd4_encode_open() 3272 switch (open->op_why_no_deleg) { nfsd4_encode_open() 3278 *p++ = cpu_to_be32(open->op_why_no_deleg); nfsd4_encode_open() 3286 *p++ = cpu_to_be32(open->op_why_no_deleg); nfsd4_encode_open()
|
H A D | state.h | 90 /* For an open stateid kept around *only* to process close replays: */ 405 * A core object that represents either an open or lock owner. The object and 419 struct xdr_netobj so_owner; /* open owner name */ 425 * When a file is opened, the client provides an open state owner opaque string 426 * that indicates the "owner" of that open. These objects are refcounted. 427 * References to it are held by each open state associated with it. This object 469 * on a file from a particular client.'od' stands for 'open & delegation' 479 * nfs4_file: a file opened by some number of (open) nfs4_stateowners. 503 * Each open or lock stateid contributes 0-4 to the counts 522 * A generic struct representing either a open or lock stateid. The nfs4_client 525 * released in response to a close or unlock (depending on whether it's an open 528 * In the case of v4.0 open stateids, these objects are preserved for a little
|
/linux-4.1.27/arch/um/os-Linux/ |
H A D | tty.c | 32 fd = open("/dev/ptmx", O_RDWR); get_pty() 35 printk(UM_KERN_ERR "get_pty : Couldn't open /dev/ptmx - " get_pty()
|
H A D | process.c | 33 fd = open(proc_stat, O_RDONLY, 0); os_process_pc() 35 printk(UM_KERN_ERR "os_process_pc - couldn't open '%s', " os_process_pc() 68 fd = open(stat, O_RDONLY, 0); os_process_parent() 70 printk(UM_KERN_ERR "Couldn't open '%s', errno = %d\n", stat, os_process_parent()
|
/linux-4.1.27/scripts/ |
H A D | export_report.pl | 55 open my $fh, '<', $_ or die "cannot open $_: $!\n"; 81 open (my $module_symvers, '<', $opt{'k'}) 82 or die "Sorry, cannot open $opt{'k'}: $!\n"; 85 open (my $out, '>', $opt{'o'}) 86 or die "Sorry, cannot open $opt{'o'} $!\n"; 110 unless (open ($module, '<', $thismod)) { 111 warn "Sorry, cannot open $thismod: $!\n";
|
H A D | checkincludes.pl | 41 open(my $f, '<', $file) 42 or die "Cannot open $file: $!.\n"; 65 open($f, '>', $file)
|
/linux-4.1.27/drivers/xen/xenfs/ |
H A D | xenstored.c | 49 .open = xsd_kva_open, 65 .open = xsd_port_open,
|
/linux-4.1.27/drivers/staging/fwserial/ |
H A D | dma_fifo.c | 36 * private helper fn to determine if check is in open interval (lo,hi) 88 fifo->open = 0; dma_fifo_alloc() 135 fifo->open = 0; dma_fifo_reset() 207 if (fifo->open == fifo->open_limit) dma_fifo_out_pend() 232 ++fifo->open; dma_fifo_out_pend() 234 if (FAIL(fifo, fifo->open > fifo->open_limit, dma_fifo_out_pend() 235 "past open limit:%d (limit:%d)", dma_fifo_out_pend() 236 fifo->open, fifo->open_limit)) dma_fifo_out_pend() 259 if (list_empty(&fifo->pending) && fifo->open == 0) dma_fifo_out_complete() 262 if (FAIL(fifo, list_empty(&fifo->pending) != (fifo->open == 0), dma_fifo_out_complete() 263 "pending list disagrees with open count:%d", dma_fifo_out_complete() 264 fifo->open)) dma_fifo_out_complete() 290 --fifo->open; dma_fifo_out_complete() 296 if (FAIL(fifo, fifo->open < 0, "open dma:%d < 0", fifo->open)) dma_fifo_out_complete()
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
H A D | resource.h | 14 #define RLIMIT_NOFILE 6 /* max number of open files */
|
H A D | envctrl.h | 18 * The driver supports 4 operations: open(), close(), ioctl(), read() 22 * fd = open("/dev/envtrl", O_RDONLY);
|
/linux-4.1.27/Documentation/mic/mpssd/ |
H A D | sysfs.c | 40 fd = open(filename, O_RDONLY); readsysfs() 42 mpsslog("Failed to open sysfs entry '%s': %s\n", readsysfs() 82 fd = open(filename, O_RDWR); setsysfs() 85 mpsslog("Failed to open sysfs entry '%s': %s\n", setsysfs()
|
/linux-4.1.27/include/linux/ceph/ |
H A D | debugfs.h | 14 .open = name##_open, \
|
/linux-4.1.27/drivers/net/wan/ |
H A D | hdlc.c | 20 * - proto->open(), close(), start(), stop() calls are serialized. 21 * The order is: open, [ start, stop ... ] close ... 131 if (!hdlc->open) hdlc_device_event() 154 printk(KERN_DEBUG "%s: hdlc_open() carrier %i open %i\n", dev->name, hdlc_open() 155 hdlc->carrier, hdlc->open); hdlc_open() 161 if (hdlc->proto->open) { hdlc_open() 162 int result = hdlc->proto->open(dev); hdlc_open() 175 hdlc->open = 1; hdlc_open() 188 printk(KERN_DEBUG "%s: hdlc_close() carrier %i open %i\n", dev->name, hdlc_close() 189 hdlc->carrier, hdlc->open); hdlc_close() 194 hdlc->open = 0; hdlc_close() 252 hdlc->open = 0; hdlc_setup()
|
/linux-4.1.27/fs/ext3/ |
H A D | file.c | 28 * from ext3_file_open: open gets called at every open, but release 60 .open = dquot_file_open,
|
/linux-4.1.27/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 34 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); main() 52 fd2 = open(kpath, O_RDWR, 0644); main() 54 perror("Can't open file"); main()
|
/linux-4.1.27/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 18 * open a posix message queue and then reports whether or not they 277 shutdown(2, "Failed to open msg_max", __LINE__); main() 279 shutdown(2, "Failed to open msgsize_max", __LINE__); main() 402 printf("Kernel fails to open mq because defaults are " main() 420 * Test #2 - open with an attr struct that exceeds rlimit main() 431 printf("Queue open in excess of rlimit max when euid = 0 " main() 434 printf("Queue open in excess of rlimit max when euid = 0 " main() 439 printf("Queue open with mq_maxmsg > limit when euid = 0 " main() 442 printf("Queue open with mq_maxmsg > limit when euid = 0 " main() 447 printf("Queue open with mq_msgsize > limit when euid = 0 " main() 450 printf("Queue open with mq_msgsize > limit when euid = 0 " main() 455 printf("Queue open with total size > 2GB when euid = 0 " main() 458 printf("Queue open with total size > 2GB when euid = 0 " main() 469 printf("Queue open in excess of rlimit max when euid = 99 " main() 472 printf("Queue open in excess of rlimit max when euid = 99 " main() 477 printf("Queue open with mq_maxmsg > limit when euid = 99 " main() 480 printf("Queue open with mq_maxmsg > limit when euid = 99 " main() 485 printf("Queue open with mq_msgsize > limit when euid = 99 " main() 488 printf("Queue open with mq_msgsize > limit when euid = 99 " main() 493 printf("Queue open with total size > 2GB when euid = 99 " main() 496 printf("Queue open with total size > 2GB when euid = 99 " main()
|
/linux-4.1.27/drivers/misc/ |
H A D | hpilo.h | 16 /* max number of open channel control blocks per device, hw limited to 32 */ 18 /* min number of open channel control blocks per device, hw limited to 32 */ 28 /* spin counter for open/close delay */ 50 * open_lock serializes ccb_cnt during open and close 53 * which represents all ccbs open on the device 156 /* open wanted exclusive access to this ccb */
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
H A D | oslibcfs.c | 84 perror("Could not open file"); acpi_os_open_file() 94 * PARAMETERS: file - An open file descriptor 111 * PARAMETERS: file - An open file descriptor 139 * PARAMETERS: file - An open file descriptor 168 * PARAMETERS: file - An open file descriptor 188 * PARAMETERS: file - An open file descriptor
|
/linux-4.1.27/drivers/usb/misc/ |
H A D | idmouse.c | 81 int open; /* if the port is open or not */ member in struct:usb_idmouse 105 .open = idmouse_open, 207 /* PM operations are nops as this driver does IO only during open() */ idmouse_suspend() 247 /* check if already open */ idmouse_open() 248 if (dev->open) { idmouse_open() 250 /* already open, so fail */ idmouse_open() 265 ++dev->open; idmouse_open() 292 /* are we really open? */ idmouse_release() 293 if (dev->open <= 0) { idmouse_release() 299 --dev->open; idmouse_release() 420 if (!dev->open) { idmouse_disconnect()
|
H A D | chaoskey.c | 82 int open; /* open count */ member in struct:chaoskey 241 if (!dev->open) { chaoskey_disconnect() 260 usb_dbg(interface, "open"); chaoskey_open() 264 usb_dbg(interface, "open (dev)"); chaoskey_open() 270 ++dev->open; chaoskey_open() 273 usb_dbg(interface, "open success"); chaoskey_open() 291 usb_dbg(interface, "open count at release is %d", dev->open); chaoskey_release() 293 if (dev->open <= 0) { chaoskey_release() 294 usb_dbg(interface, "invalid open count (%d)", dev->open); chaoskey_release() 299 --dev->open; chaoskey_release() 302 if (dev->open == 0) { chaoskey_release() 507 .open = chaoskey_open,
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | wishbone-serial.c | 43 value, /* wValue = device is open(1) or closed(0) */ usb_gsi_openclose() 57 "Could not mark device as open (%d)\n", wishbone_serial_open() 82 .open = &wishbone_serial_open,
|
H A D | io_tables.h | 106 .open = edge_open, 138 .open = edge_open, 170 .open = edge_open, 202 .open = edge_open,
|
/linux-4.1.27/include/linux/regulator/ |
H A D | fixed.h | 30 * @gpio_is_open_drain: Gpio pin is open drain or normal type. 31 * If it is open drain type then HIGH will be set 34 * to low. For non-open-drain case, the gpio will
|
/linux-4.1.27/arch/mips/loongson/lemote-2f/ |
H A D | pm.c | 63 /* open the keyboard irq in i8259A */ setup_wakeup_events() 70 /* Wakeup CPU via SCI lid open event */ setup_wakeup_events() 120 /* wakeup cpu when people open the LID */ wakeup_loongson()
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-disk_proc.c | 61 .open = idedisk_cache_proc_open, 82 .open = idedisk_capacity_proc_open, 123 .open = idedisk_sv_proc_open, 141 .open = idedisk_st_proc_open,
|
H A D | ide-floppy_proc.c | 23 .open = idefloppy_capacity_proc_open,
|
/linux-4.1.27/drivers/ras/ |
H A D | debugfs.c | 31 .open = trace_open,
|
/linux-4.1.27/fs/ |
H A D | no-block.c | 21 .open = no_blkdev_open,
|
H A D | open.c | 2 * linux/fs/open.c 672 /* NB: we're sure to have correct a_ops only after f_op->open */ open_check_o_direct() 682 int (*open)(struct inode *, struct file *), do_dentry_open() 731 if (!open) do_dentry_open() 732 open = f->f_op->open; do_dentry_open() 733 if (open) { do_dentry_open() 734 error = open(inode, f); do_dentry_open() 771 * @open: open callback 772 * @opened: state of open 776 * If the open callback is set to NULL, then the standard f_op->open() 783 * On successful return @file is a fully instantiated open file. After this, if 786 * Returns zero on success or -errno if the open failed. 789 int (*open)(struct inode *, struct file *), finish_open() 796 error = do_dentry_open(file, d_backing_inode(dentry), open, finish_open() 827 * vfs_open - open the file at the given path 828 * @path: path to open 909 * If we have O_PATH in the open flag. Then we build_open_flags() 948 * file_open_name - open file and return file pointer 950 * @name: struct filename containing path to open 951 * @flags: open flags as per the open(2) second argument 954 * This is the helper to open a file from kernelspace if you really 966 * filp_open - open file and return file pointer 968 * @filename: path to open 969 * @flags: open flags as per the open(2) second argument 972 * This is the helper to open a file from kernelspace if you really 1028 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) SYSCALL_DEFINE3() 1118 * Called when an inode is about to be open.
|
/linux-4.1.27/fs/ufs/ |
H A D | file.c | 41 .open = generic_file_open,
|
/linux-4.1.27/include/linux/ |
H A D | w1-gpio.h | 16 * @is_open_drain: GPIO pin is configured as open drain
|
H A D | hdlc.h | 23 int (*open)(struct net_device *dev); member in struct:hdlc_proto 25 void (*start)(struct net_device *dev); /* if open & DCD */ 26 void (*stop)(struct net_device *dev); /* if open & !DCD */ 49 int open; member in struct:hdlc_device
|
H A D | i2c-gpio.h | 20 * @sda_is_open_drain: SDA is configured as open drain, i.e. the pin 24 * @scl_is_open_drain: SCL is set up as open drain. Same requirements
|
H A D | errno.h | 19 #define EOPENSTALE 518 /* open found a stale dentry */
|
H A D | pstore.h | 55 struct mutex read_mutex; /* serialize open/read/close */ 57 int (*open)(struct pstore_info *psi); member in struct:pstore_info
|
H A D | input-polldev.h | 18 * @open: driver-supplied method that prepares device for polling 40 void (*open)(struct input_polled_dev *dev); member in struct:input_polled_dev
|
H A D | posix-clock.h | 51 * @open: Optional character device open method 91 int (*open) (struct posix_clock *pc, fmode_t f_mode); member in struct:posix_clock_operations
|
H A D | uio_driver.h | 90 * @open: open operation for this uio device 105 int (*open)(struct uio_info *info, struct inode *inode); member in struct:uio_info
|
H A D | vfio.h | 24 * @open: Called when userspace creates new file descriptor for device 35 int (*open)(void *device_data); member in struct:vfio_device_ops 62 void *(*open)(unsigned long arg); member in struct:vfio_iommu_driver_ops
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | mktree.c | 81 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { main() 82 perror("zImage open"); main() 86 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { main() 87 perror("bootfile open"); main()
|
H A D | ofconsole.c | 45 console_ops.open = of_console_open; of_console_init()
|
H A D | mpc52xx-psc.c | 58 scdp->open = psc_open; mpc5200_psc_console_init()
|
H A D | oflib.c | 21 /* The following structure is used to communicate with open firmware. 144 memory = of_call_prom("open", 1, 1, "/memory"); check_of_version() 146 memory = of_call_prom("open", 1, 1, "/memory@0"); check_of_version()
|
/linux-4.1.27/Documentation/filesystems/ |
H A D | dnotify_test.c | 25 fd = open(".", O_RDONLY); main()
|
/linux-4.1.27/Documentation/laptops/ |
H A D | freefall.c | 43 int fd = open(unload_heads_path, O_RDONLY); valid_disk() 57 int fd = open(path, O_RDWR); write_int() 60 perror("open"); write_int() 126 fd = open("/dev/freefall", O_RDONLY); main()
|
/linux-4.1.27/arch/alpha/boot/tools/ |
H A D | mkbb.c | 99 /* First, open the device and make sure it's accessible */ main() 100 dev = open(argv[1], O_RDWR); main() 106 /* Now open the lxboot and make sure it's reasonable */ main() 107 fd = open(argv[2], O_RDONLY); main()
|
H A D | objstrip.c | 90 fd = open(inname, O_RDONLY); main() 92 perror("open"); main() 98 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); main() 100 perror("open"); main()
|
/linux-4.1.27/arch/alpha/include/uapi/asm/ |
H A D | resource.h | 8 #define RLIMIT_NOFILE 6 /* max number of open files */
|
/linux-4.1.27/fs/9p/ |
H A D | v9fs_vfs.h | 27 * But linux semantics are that you call create, then open. 29 * open. 33 * one BAD way is to clunk the fid on create, then open it again: 34 * you lose the atomicity of file open
|
/linux-4.1.27/drivers/char/ |
H A D | misc.c | 4 * Generic misc open routine by Johan Myreen 105 .open = misc_seq_open, 146 * file operations, including f_op->open below misc_open() 152 if (file->f_op->open) misc_open() 153 err = file->f_op->open(inode,file); misc_open() 163 .open = misc_open, 177 * destroyed until it has been unregistered. By default, an open() 179 * structure. Drivers don't need open in fops for this.
|
H A D | efirtc.c | 259 * We enforce only one user at a time here with the open/close. 260 * Also clear the previous interrupt data on an open, and clean 268 * We do accept multiple open files at the same time as we efi_rtc_open() 286 .open = efi_rtc_open, 369 .open = efi_rtc_proc_open,
|
H A D | tile-srom.c | 127 * srom_open() - Device open routine. 129 * @filp: File for this specific open of the device. 143 * @filp: File for this specific open of the device. 166 * @filp: File for this specific open of the device. 221 * @filp: File for this specific open of the device. 327 .open = srom_open,
|
H A D | nsc_gpio.c | 31 (config & 2) ? "PP" : "OD", /* push pull / open drain */ nsc_gpio_dump() 74 dev_dbg(dev, "GPIO%d output is open drain\n", m); nsc_gpio_write()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | dib0070.h | 54 extern void dib0070_ctrl_agc_filter(struct dvb_frontend *, u8 open); 70 static inline void dib0070_ctrl_agc_filter(struct dvb_frontend *fe, u8 open) dib0070_ctrl_agc_filter() argument
|
/linux-4.1.27/arch/sh/boards/mach-landisk/ |
H A D | setup.c | 61 /* open I/O area window */ landisk_devices_setup() 66 printk("allocate_cf_area : can't open CF I/O window!\n"); landisk_devices_setup()
|
/linux-4.1.27/arch/sh/boards/mach-lboxre2/ |
H A D | setup.c | 56 /* open I/O area window */ lboxre2_devices_setup() 62 printk(KERN_ERR "%s : can't open CF I/O window!\n" , __func__ ); lboxre2_devices_setup()
|
/linux-4.1.27/arch/sh/boards/mach-sh03/ |
H A D | setup.c | 82 /* open I/O area window */ sh03_devices_setup() 87 printk("allocate_cf_area : can't open CF I/O window!\n"); sh03_devices_setup()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | pmon.h | 15 int (*open) (char*, int, int); member in struct:callvectors 33 #define pmon_open(name, flags, mode) debug_vectors->open(name, flage, mode)
|
/linux-4.1.27/tools/testing/selftests/vm/ |
H A D | hugetlbfstest.c | 22 fd = open("/proc/self/statm", O_RDONLY); read_rss() 60 fd = open(path, O_CREAT | O_RDWR | O_TRUNC | O_EXCL open_file()
|
/linux-4.1.27/drivers/pps/clients/ |
H A D | pps-ldisc.c | 81 /* Now open the base class N_TTY ldisc */ pps_tty_open() 84 pr_err("cannot open tty ldisc \"%s\"\n", info.path); pps_tty_open() 125 /* Save N_TTY's open()/close() methods */ pps_tty_init() 126 alias_n_tty_open = pps_ldisc_ops.open; pps_tty_init() 134 pps_ldisc_ops.open = pps_tty_open; pps_tty_init()
|
/linux-4.1.27/net/bluetooth/ |
H A D | hci_debugfs.c | 73 .open = simple_open, \ 111 .open = features_open, 135 .open = device_id_open, 165 .open = device_list_open, 190 .open = blacklist_open, 225 .open = uuids_open, 254 .open = remote_oob_open, 329 .open = simple_open, 347 .open = simple_open, 417 .open = inquiry_cache_open, 443 .open = link_keys_open, 467 .open = dev_class_open, 500 .open = simple_open, 666 .open = identity_open, 720 .open = random_address_open, 743 .open = static_address_open, 790 .open = simple_open, 815 .open = white_list_open, 844 .open = identity_resolving_keys_open, 872 .open = long_term_keys_open,
|
/linux-4.1.27/drivers/net/wireless/rsi/ |
H A D | rsi_91x_debugfs.c | 62 * rsi_sdio_stats_open() - This funtion calls single open function of seq_file 63 * to open file and read contents from it. 103 * rsi_version_open() - This funtion calls single open function of seq_file to 104 * open file and read contents from it. 183 * rsi_stats_open() - This funtion calls single open function of seq_file to 184 * open file and read contents from it. 212 * rsi_debug_read() - This funtion calls single open function of seq_file to 213 * open file and read contents from it. 257 .open = (fopen), \ 264 .open = (fopen), \
|
/linux-4.1.27/drivers/gpu/drm/msm/ |
H A D | msm_rd.c | 29 * do anything if userspace doesn't have the debugfs file open. 76 bool open; member in struct:msm_rd_state 171 if (rd->open || !gpu) { rd_open() 177 rd->open = true; rd_open() 195 rd->open = false; rd_release() 202 .open = rd_open, 289 if (!rd->open) msm_rd_dump_submit()
|
H A D | msm_perf.c | 36 bool open; member in struct:msm_perf_state 170 if (perf->open || !gpu) { perf_open() 176 perf->open = true; perf_open() 193 perf->open = false; perf_release() 200 .open = perf_open,
|
/linux-4.1.27/drivers/tty/ |
H A D | n_tracesink.c | 54 * after an init() but before a successful open() which 68 * -EEXIST = open() called successfully once and it cannot 71 * Caveats: open() should only be successful the first time a 113 * @file: pointer to open file object. 135 * @file: pointer to open file object. 167 * on top of via an open() call, this API function will not 194 .open = n_tracesink_open,
|
H A D | tty_ldisc.c | 242 .open = proc_tty_ldiscs_open, 434 * tty_ldisc_open - open a line discipline 436 * @ld: discipline to open 447 if (ld->ops->open) { tty_ldisc_open() 450 ret = ld->ops->open(tty); tty_ldisc_open() 481 * change fails due to an open error 505 panic("Couldn't open N_TTY ldisc for " tty_ldisc_restore() 697 open but it means auditing a lot of other paths so this is tty_ldisc_hangup() 706 /* If the re-open fails or we reset then go to N_TTY. The tty_ldisc_hangup() 707 N_TTY open cannot fail */ tty_ldisc_hangup() 721 * tty_ldisc_setup - open line discipline 725 * Called during the initial open of a tty/pty pair in order to set up the 759 /* Ensure the next open requests the N_TTY ldisc */ tty_ldisc_kill()
|
/linux-4.1.27/fs/kernfs/ |
H A D | file.c | 22 * There's one kernfs_open_file for each open file and one kernfs_open_node 23 * for each kernfs_node with one or more open files. 25 * kernfs_node->attr.open points to kernfs_open_node. attr.open is 110 * the ops aren't called concurrently for the same open file. kernfs_seq_start() 166 of->event = atomic_read(&of->kn->attr.open->event); kernfs_seq_show() 200 * the ops aren't called concurrently for the same open file, and kernfs_file_direct_read() 210 of->event = atomic_read(&of->kn->attr.open->event); kernfs_file_direct_read() 294 * the ops aren't called concurrently for the same open file, and kernfs_fop_write() 339 if (of->vm_ops->open) kernfs_vma_open() 340 of->vm_ops->open(vma); kernfs_vma_open() 455 .open = kernfs_vma_open, 527 * @of: kernfs_open_file for this instance of open 529 * If @kn->attr.open exists, increment its reference count; otherwise, 547 if (!kn->attr.open && new_on) { kernfs_get_open_node() 548 kn->attr.open = new_on; kernfs_get_open_node() 552 on = kn->attr.open; kernfs_get_open_node() 583 * Put @kn->attr.open and unlink @of from the files list. If 592 struct kernfs_open_node *on = kn->attr.open; kernfs_put_open_node() 602 kn->attr.open = NULL; kernfs_put_open_node() 654 * open file has a separate mutex, it's okay as long as those don't kernfs_fop_open() 710 /* make sure we have open node struct */ kernfs_fop_open() 715 /* open succeeded, put active references */ kernfs_fop_open() 751 on = kn->attr.open; kernfs_unmap_bin_file() 776 * need to close and re-open the file, or seek to 0 and read again. 786 struct kernfs_open_node *on = kn->attr.open; kernfs_fop_poll() 825 on = kn->attr.open; kernfs_notify_workfn() 891 .open = kernfs_fop_open,
|
/linux-4.1.27/drivers/net/irda/ |
H A D | sir_dongle.c | 106 if (!drv->open || (err=drv->open(dev))!=0) sirdev_get_dongle() 107 goto out_reject; /* failed to open driver */ sirdev_get_dongle()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | vmur.h | 73 wait_queue_head_t wait; /* wait queue to serialize open */ 74 int open_flag; /* "urdev is open" flag */ 79 * A struct urfile is allocated at open() time for each device and
|
H A D | hmcdrv_dev.c | 9 * device by calling hmcdrv_dev_init(). After open() a lseek(fd, 0, 11 * first command after open). Then write() the FTP command ASCII string 69 .open = hmcdrv_dev_open, 111 * open() 122 /* Because it makes no sense to open this device read-only (then a hmcdrv_dev_open() 129 * device file open - so increment the reference count here hmcdrv_dev_open() 139 pr_debug("open file '/dev/%pD' with return code %d\n", fp, rc); hmcdrv_dev_open()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | debugfs.h | 50 .open = simple_open, \ 87 .open = simple_open, \ 112 .open = simple_open, \
|
H A D | debugfs.c | 106 .open = simple_open, 182 .open = simple_open, \ 235 .open = simple_open, 254 .open = simple_open, 318 .open = simple_open, 387 .open = simple_open, 429 .open = simple_open, 528 .open = simple_open, 638 .open = simple_open, 696 .open = simple_open, 754 .open = simple_open, 812 .open = simple_open, 867 .open = simple_open, 922 .open = simple_open, 959 .open = simple_open, 978 .open = simple_open, 1040 .open = simple_open, 1231 .open = simple_open,
|
/linux-4.1.27/security/selinux/include/ |
H A D | objsec.h | 54 u32 sid; /* SID of open file description */ 56 u32 isid; /* SID of inode at the time of file open */ 57 u32 pseqno; /* Policy seqno at the time of file open */
|
/linux-4.1.27/tools/testing/selftests/exec/ |
H A D | execveat.c | 127 int fd = open(filename, flags); open_or_die() 130 printf("Failed to open '%s'; " open_or_die() 140 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); exe_cp() 181 fd = open(longpath, O_RDONLY); check_execveat_pathmax() 187 printf("Failed to open length %zu filename, errno=%d (%s)\n", check_execveat_pathmax() 194 * the interpreter will launch but fail to open the script because its check_execveat_pathmax() 264 /* Mess with executable file that's already open: */ run_tests() 269 unlink("execveat.moved"); /* remove the file now fd open */ run_tests() 272 /* Mess with executable file that's already open with O_PATH */ run_tests() 318 /* Mess with script file that's already open: */ run_tests() 323 unlink("script.moved"); /* remove the file while fd open */ run_tests() 372 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); prerequisites()
|
/linux-4.1.27/tools/testing/selftests/timers/ |
H A D | clocksource-switch.c | 58 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); get_clocksources() 90 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); get_cur_clocksource() 102 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); change_clocksource()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-is-sensor.h | 37 /* sensor open timeout in ms */
|
/linux-4.1.27/drivers/sh/intc/ |
H A D | virq-debugfs.c | 46 .open = intc_irq_xlate_open,
|
/linux-4.1.27/arch/x86/tools/ |
H A D | relocs_common.c | 68 die("Cannot open %s: %s\n", fname, strerror(errno)); main()
|
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/pinctrl/ |
H A D | pinctrl-tegra.h | 23 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | ad5449.h | 18 * @AD5449_SDO_OPEN_DRAIN: Operate the SDO pin in open-drain mode.
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
H A D | resource.h | 17 #define RLIMIT_NOFILE 5 /* max number of open files */
|
/linux-4.1.27/arch/mips/ralink/ |
H A D | bootrom.c | 30 .open = bootrom_open,
|
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/pinctrl/ |
H A D | pinctrl-tegra.h | 23 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
|
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/pinctrl/ |
H A D | pinctrl-tegra.h | 23 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
|
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/pinctrl/ |
H A D | pinctrl-tegra.h | 23 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
|
/linux-4.1.27/Documentation/trace/ |
H A D | function-graph-fold.vim | 5 " use the usual vim fold commands, such as "za", to open and close nested
|
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/pinctrl/ |
H A D | pinctrl-tegra.h | 23 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
|
/linux-4.1.27/net/caif/ |
H A D | cfsrvl.c | 38 service->open = true; cfservl_ctrlcmd() 43 service->open = false; cfservl_ctrlcmd() 167 service->open = false; cfsrvl_init() 180 if (!service->open) { cfsrvl_ready()
|
/linux-4.1.27/kernel/ |
H A D | exec_domain.c | 36 .open = execdomains_proc_open,
|
/linux-4.1.27/tools/usb/usbip/src/ |
H A D | usbip_port.c | 27 err("open vhci_driver"); list_imported_devices()
|
/linux-4.1.27/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 51 rw_ti->in_fd = open(in_path, O_RDONLY); rw_thread_init() 53 pr_err("Could not open in_fd (CPU:%d)\n", cpu); rw_thread_init() 60 rw_ti->out_fd = open(out_path, O_WRONLY); rw_thread_init() 62 pr_err("Could not open out_fd (CPU:%d)\n", cpu); rw_thread_init()
|
H A D | trace-agent-ctl.c | 38 ctl_fd = open(ctl_path, O_RDONLY); rw_ctl_init() 40 pr_err("Cannot open ctl_fd\n"); rw_ctl_init()
|
/linux-4.1.27/include/dt-bindings/pinctrl/ |
H A D | pinctrl-tegra.h | 23 * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
H A D | udl_drv.c | 21 .open = drm_gem_vm_open, 27 .open = drm_open,
|
/linux-4.1.27/include/sound/ |
H A D | seq_oss.h | 36 /* following must be initialized in open callback */ 52 int (*open)(struct snd_seq_oss_arg *p, void *closure); member in struct:snd_seq_oss_callback
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
H A D | event_sources.c | 33 /* Check for obsolete "open-pic-interrupt" property. If present, then request_event_sources_irqs() 37 opicprop = of_get_property(np, "open-pic-interrupt", &opicplen); request_event_sources_irqs()
|
/linux-4.1.27/Documentation/spi/ |
H A D | spidev_fdx.c | 142 fd = open(name, O_RDWR); main() 144 perror("open"); main()
|
/linux-4.1.27/fs/cachefiles/ |
H A D | proc.c | 88 * open "/proc/fs/cachefiles/XXX" which provide statistics summaries 97 .open = cachefiles_histogram_open,
|
/linux-4.1.27/fs/ext2/ |
H A D | file.c | 61 * for a single struct file are closed. Note that different open() calls 103 .open = dquot_file_open,
|
/linux-4.1.27/fs/fscache/ |
H A D | histogram.c | 94 * open "/proc/fs/fscache/histogram" to provide latency data 103 .open = fscache_histogram_open,
|
/linux-4.1.27/net/irda/irnet/ |
H A D | irnet_ppp.h | 63 dev_irnet_open(struct inode *, /* fs callback : open */ 105 .open = dev_irnet_open,
|
/linux-4.1.27/net/wireless/ |
H A D | debugfs.c | 30 .open = simple_open, \ 101 .open = simple_open,
|
/linux-4.1.27/scripts/selinux/genheaders/ |
H A D | genheaders.c | 56 fprintf(stderr, "Could not open %s for writing: %s\n", main() 116 fprintf(stderr, "Could not open %s for writing: %s\n", main()
|
/linux-4.1.27/sound/firewire/dice/ |
H A D | dice-midi.c | 82 .open = midi_open, 88 .open = midi_open,
|
/linux-4.1.27/sound/pci/lx6464es/ |
H A D | lx6464es.h | 61 enum lx_stream_status status; /* free, open, running, draining 75 struct mutex setup_mutex; /* mutex used in hw_params, open
|
/linux-4.1.27/tools/power/cpupower/utils/helpers/ |
H A D | msr.c | 32 fd = open(msr_file_name, O_RDONLY); read_msr() 61 fd = open(msr_file_name, O_WRONLY); write_msr()
|
/linux-4.1.27/tools/testing/selftests/powerpc/ |
H A D | harness.c | 129 fd = open("/proc/self/auxv", O_RDONLY); get_auxv_entry() 131 perror("open"); get_auxv_entry()
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | journal.h | 31 * journal entry still open - i.e. that has keys that haven't been flushed to 34 * We track this by maintaining a refcount for every open journal entry, in a 37 * zero, we pop it off - thus, the size of the fifo tells us the number of open 53 * As mentioned previously, our fifo of refcounts tells us the number of open 68 * space to write to, or we could have too many open journal entries and run out 135 /* Last journal bucket that still contains an open journal entry */
|
/linux-4.1.27/drivers/input/serio/ |
H A D | at32psif.c | 103 bool open; member in struct:psif 167 psif->open = true; psif_open() 176 psif->open = false; psif_close() 274 io->open = psif_open; psif_probe() 326 if (psif->open) { psif_suspend() 339 if (psif->open) { psif_resume()
|
/linux-4.1.27/drivers/video/fbdev/mbx/ |
H A D | mbxdebugfs.c | 177 .open = open_file_generic, 184 .open = open_file_generic, 191 .open = open_file_generic, 198 .open = open_file_generic, 205 .open = open_file_generic, 212 .open = open_file_generic,
|
/linux-4.1.27/drivers/pnp/pnpbios/ |
H A D | proc.c | 56 .open = pnpconfig_proc_open, 83 .open = escd_info_proc_open, 138 .open = escd_proc_open, 168 .open = pnp_legacyres_proc_open, 211 .open = pnp_devices_proc_open, 279 .open = pnpbios_proc_open,
|
/linux-4.1.27/arch/cris/boot/tools/ |
H A D | build.c | 145 if ((id=open(argv[1],O_RDONLY,0))<0) main() 146 die("Unable to open 'boot'"); main() 174 if ((id=open(argv[2],O_RDONLY,0))<0) main() 175 die("Unable to open 'setup'"); main() 231 if ((id=open(argv[3],O_RDONLY,0))<0) main() 232 die("Unable to open 'system'"); main()
|
/linux-4.1.27/tools/usb/ffs-aio-example/multibuff/device_app/ |
H A D | aio_multibuff.c | 262 /* open endpoint files */ main() 264 ep0 = open(ep_path, O_RDWR); main() 266 perror("unable to open ep0"); main() 278 ep1 = open(ep_path, O_RDWR); main() 280 perror("unable to open ep1"); main() 295 perror("unable to open eventfd"); main()
|
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 233 /* open endpoint files */ main() 235 ep0 = open(ep_path, O_RDWR); main() 237 perror("unable to open ep0"); main() 250 ep[i] = open(ep_path, O_RDWR); main() 252 printf("unable to open ep%d: %s\n", i+1, main() 269 perror("unable to open eventfd"); main()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_vma_manager.c | 63 * management. For every open-file context that is allowed to access a given 65 * open-file with the offset of the node will fail with -EACCES. To revoke 291 * drm_vma_node_allow - Add open-file to list of allowed users 295 * Add @filp to the list of allowed open-files for this node. If @filp is 302 * You must remove all open-files the same number of times as you added them 318 * unlikely that an open-file is added twice to a single node so we drm_vma_node_allow() 360 * drm_vma_node_revoke - Remove open-file from list of allowed users 364 * Decrement the ref-count of @filp in the list of allowed open-files on @node. 400 * drm_vma_node_is_allowed - Check whether an open-file is granted access 405 * open-files (see drm_vma_node_allow()).
|
/linux-4.1.27/sound/isa/wavefront/ |
H A D | wavefront_midi.c | 248 spin_lock_irqsave (&midi->open, flags); snd_wavefront_midi_input_open() 251 spin_unlock_irqrestore (&midi->open, flags); snd_wavefront_midi_input_open() 272 spin_lock_irqsave (&midi->open, flags); snd_wavefront_midi_output_open() 275 spin_unlock_irqrestore (&midi->open, flags); snd_wavefront_midi_output_open() 296 spin_lock_irqsave (&midi->open, flags); snd_wavefront_midi_input_close() 298 spin_unlock_irqrestore (&midi->open, flags); snd_wavefront_midi_input_close() 319 spin_lock_irqsave (&midi->open, flags); snd_wavefront_midi_output_close() 321 spin_unlock_irqrestore (&midi->open, flags); snd_wavefront_midi_output_close() 564 .open = snd_wavefront_midi_output_open, 571 .open = snd_wavefront_midi_input_open,
|
/linux-4.1.27/drivers/misc/mic/host/ |
H A D | mic_debugfs.c | 93 .open = mic_log_buf_open, 135 .open = mic_smpt_debug_open, 161 .open = mic_soft_reset_debug_open, 188 .open = mic_post_code_debug_open, 280 .open = mic_dp_debug_open, 369 .open = mic_vdev_info_debug_open, 433 .open = mic_msi_irq_info_debug_open,
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-roccat.c | 45 int open; member in struct:roccat_device 174 if (!device->open++) { roccat_open() 178 --device->open; roccat_open() 185 --device->open; roccat_open() 226 if (!--device->open) { roccat_release() 370 if (device->open) { roccat_disconnect() 411 .open = roccat_open,
|
/linux-4.1.27/drivers/usb/chipidea/ |
H A D | debug.c | 54 .open = ci_device_open, 114 .open = ci_port_test_open, 158 .open = ci_qheads_open, 209 .open = ci_requests_open, 283 .open = ci_otg_open, 331 .open = ci_role_open, 376 .open = ci_registers_open,
|
/linux-4.1.27/sound/isa/ |
H A D | cmi8330.c | 176 snd_pcm_open_callback_t open; member in struct:snd_cmi8330::snd_cmi8330_stream 408 * - replace the open callback with the new one, which replaces the 410 * and calls again the original open callback of the chip. 426 /* replace the private_data and call the original open callback */ snd_cmi8330_playback_open() 428 return chip->streams[SNDRV_PCM_STREAM_PLAYBACK].open(substream); snd_cmi8330_playback_open() 435 /* replace the private_data and call the original open callback */ snd_cmi8330_capture_open() 437 return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream); snd_cmi8330_capture_open() 458 chip->streams[CMI_SB_STREAM].open = ops->open; snd_cmi8330_pcm() 459 chip->streams[CMI_SB_STREAM].ops.open = cmi_open_callbacks[CMI_SB_STREAM]; snd_cmi8330_pcm() 465 chip->streams[CMI_AD_STREAM].open = ops->open; snd_cmi8330_pcm() 466 chip->streams[CMI_AD_STREAM].ops.open = cmi_open_callbacks[CMI_AD_STREAM]; snd_cmi8330_pcm()
|
/linux-4.1.27/drivers/isdn/capi/ |
H A D | kcapi_proc.c | 123 .open = seq_controller_open, 131 .open = seq_contrstats_open, 233 .open = seq_applications_open, 241 .open = seq_applstats_open, 292 .open = seq_capi_driver_open,
|
/linux-4.1.27/drivers/misc/sgi-gru/ |
H A D | gruprocfs.c | 285 .open = statistics_open, 293 .open = mcs_statistics_open, 301 .open = options_open, 309 .open = cch_open, 315 .open = gru_open,
|
/linux-4.1.27/drivers/s390/scsi/ |
H A D | zfcp_fc.h | 159 * @ZFCP_FC_WKA_PORT_OPENING: The FSF "open port" request is pending 160 * @ZFCP_FC_WKA_PORT_ONLINE: The port is open and the port handle is valid 172 * @completion_wq: Wait for completion of open/close command 174 * @refcount: Reference count to keep port open as long as it is in use 176 * @handle: FSF handle for the open WKA port
|
/linux-4.1.27/drivers/uio/ |
H A D | uio_dmem_genirq.c | 264 uioinfo->open = uio_dmem_genirq_open; uio_dmem_genirq_probe() 271 * hardware and enable clocks at open(). uio_dmem_genirq_probe() 318 * are used at open() and release() time. This allows the uio_dmem_genirq_runtime_nop() 320 * device is unused, ie before open() and after release(). uio_dmem_genirq_runtime_nop() 324 * register reinitialization after open(). uio_dmem_genirq_runtime_nop()
|
H A D | uio_pdrv_genirq.c | 197 uioinfo->open = uio_pdrv_genirq_open; uio_pdrv_genirq_probe() 204 * hardware and enable clocks at open(). uio_pdrv_genirq_probe() 238 * are used at open() and release() time. This allows the uio_pdrv_genirq_runtime_nop() 240 * device is unused, ie before open() and after release(). uio_pdrv_genirq_runtime_nop() 244 * register reinitialization after open(). uio_pdrv_genirq_runtime_nop()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | pika_wdt.c | 51 unsigned long open; member in struct:__anon10694 91 (!nowayout && !pikawdt_private.open)) { pikawdt_ping() 116 if (test_and_set_bit(0, &pikawdt_private.open)) pikawdt_open() 133 clear_bit(0, &pikawdt_private.open); pikawdt_release() 212 .open = pikawdt_open,
|
/linux-4.1.27/fs/cifs/ |
H A D | smberr.h | 48 #define ERRnofids 4 /* Too many open files. The server has 54 command, write to Fid open for read 55 only, read on Fid open for write 67 #define ERRbadaccess 12 /* Invalid open mode. */ 144 by open print file. */
|
/linux-4.1.27/drivers/mfd/ |
H A D | ab8500-debugfs.c | 1341 .open = ab8500_registers_open, 1453 .open = ab8500_all_banks_open, 1730 .open = ab8500_modem_open, 1761 .open = ab8500_gpadc_bat_ctrl_open, 1793 .open = ab8500_gpadc_btemp_ball_open, 1825 .open = ab8500_gpadc_main_charger_v_open, 1857 .open = ab8500_gpadc_acc_detect1_open, 1889 .open = ab8500_gpadc_acc_detect2_open, 1919 .open = ab8500_gpadc_aux1_open, 1949 .open = ab8500_gpadc_aux2_open, 1981 .open = ab8500_gpadc_main_bat_v_open, 2011 .open = ab8500_gpadc_vbus_v_open, 2043 .open = ab8500_gpadc_main_charger_c_open, 2075 .open = ab8500_gpadc_usb_charger_c_open, 2106 .open = ab8500_gpadc_bk_bat_v_open, 2137 .open = ab8500_gpadc_die_temp_open, 2167 .open = ab8500_gpadc_usb_id_open, 2198 .open = ab8540_gpadc_xtal_temp_open, 2231 .open = ab8540_gpadc_vbat_true_meas_open, 2272 .open = ab8540_gpadc_bat_ctrl_and_ibat_open, 2312 .open = ab8540_gpadc_vbat_meas_and_ibat_open, 2355 .open = ab8540_gpadc_vbat_true_meas_and_ibat_open, 2395 .open = ab8540_gpadc_bat_temp_and_ibat_open, 2432 .open = ab8540_gpadc_otp_cal_open, 2478 .open = ab8500_gpadc_avg_sample_open, 2525 .open = ab8500_gpadc_trig_edge_open, 2570 .open = ab8500_gpadc_trig_timer_open, 2617 .open = ab8500_gpadc_conv_type_open, 2945 .open = ab8500_bank_open, 2954 .open = ab8500_address_open, 2963 .open = ab8500_val_open, 2972 .open = ab8500_interrupts_open, 2980 .open = ab8500_subscribe_unsubscribe_open, 2989 .open = ab8500_subscribe_unsubscribe_open, 2998 .open = ab8500_hwreg_open,
|
/linux-4.1.27/Documentation/target/ |
H A D | tcm_mod_builder.py | 46 p = open(f, 'w'); 48 tcm_mod_err("Unable to open file: " + f) 101 p = open(f, 'w'); 103 tcm_mod_err("Unable to open file: " + f) 154 p = open(f, 'w'); 156 tcm_mod_err("Unable to open file: " + f) 215 p = open(f, 'w'); 217 tcm_mod_err("Unable to open file: " + f) 452 p = open(fabric_ops_api, 'r') 487 p = open(f, 'w') 489 tcm_mod_err("Unable to open file: " + f) 494 pi = open(fi, 'w') 496 tcm_mod_err("Unable to open file: " + fi) 854 p = open(f, 'w') 856 tcm_mod_err("Unable to open file: " + f) 875 p = open(f, 'w') 877 tcm_mod_err("Unable to open file: " + f) 897 f = open(kbuild, 'a') 906 f = open(kconfig, 'a')
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | videobuf2-memops.c | 44 if (vma->vm_ops && vma->vm_ops->open) vb2_get_vma() 45 vma->vm_ops->open(vma); vb2_get_vma() 180 .open = vb2_common_vm_open,
|
/linux-4.1.27/drivers/misc/mei/ |
H A D | debugfs.c | 83 .open = simple_open, 131 .open = simple_open, 160 .open = simple_open,
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
H A D | debugfs.h | 69 .open = simple_open, \ 93 .open = simple_open, \ 101 .open = simple_open, \
|
/linux-4.1.27/drivers/cpufreq/ |
H A D | s3c24xx-cpufreq-debugfs.c | 70 .open = fops_board_open, 112 .open = fops_info_open, 169 .open = fops_io_open,
|
/linux-4.1.27/drivers/usb/host/whci/ |
H A D | debug.c | 149 .open = di_open, 157 .open = asl_open, 165 .open = pzl_open,
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_stats.c | 100 .open = xfs_stat_proc_open, 126 .open = xqm_proc_open, 151 .open = xqmstat_proc_open,
|
/linux-4.1.27/fs/ncpfs/ |
H A D | file.c | 88 ncp_vdbg("file open, access=%x\n", access); ncp_make_open() 122 ncp_dbg(1, "open failed, error=%d\n", error); ncp_file_read_iter() 185 ncp_dbg(1, "open failed, error=%d\n", errno); ncp_file_write_iter()
|
/linux-4.1.27/drivers/platform/x86/ |
H A D | dell-smo8800.c | 32 unsigned long misc_opened; /* whether the device is open */ 125 return -EBUSY; /* already open */ smo8800_misc_open() 143 .open = smo8800_misc_open,
|
/linux-4.1.27/include/net/9p/ |
H A D | 9p.h | 202 * enum p9_open_mode_t - 9P open modes 203 * @P9_OREAD: open file for reading only 204 * @P9_OWRITE: open file for writing only 205 * @P9_ORDWR: open file for reading or writing 206 * @P9_OEXEC: open file for execution 210 * @P9_OAPPEND: open the file and seek to the end 211 * @P9_OEXCL: only create a file, do not open it 213 * 9P open modes differ slightly from Posix standard modes. 220 * See Also: http://plan9.bell-labs.com/magic/man2html/2/open 239 * @P9_DMEXCL: mode bit for excluse use (only one open handle allowed) 274 /* 9p2000.L open flags */ 307 * @P9_QTEXCL: excluse use (only one open handle allowed)
|
/linux-4.1.27/include/uapi/asm-generic/ |
H A D | fcntl.h | 9 * These cannot be used by userspace O_* until internal and external open 142 * record locks, but are "owned" by the open file description, not the 145 * the the open file against which they were acquired is put.
|
/linux-4.1.27/fs/ecryptfs/ |
H A D | kthread.c | 124 * @lower_dentry: Lower dentry for file to open 125 * @lower_mnt: Lower vfsmount for file to open 161 "aborting privileged request to open lower file\n", ecryptfs_privileged_open()
|
/linux-4.1.27/net/appletalk/ |
H A D | atalk_proc.c | 230 .open = atalk_seq_interface_open, 238 .open = atalk_seq_route_open, 246 .open = atalk_seq_socket_open,
|
/linux-4.1.27/net/x25/ |
H A D | x25_proc.c | 190 .open = x25_seq_socket_open, 197 .open = x25_seq_route_open, 204 .open = x25_seq_forward_open,
|
/linux-4.1.27/scripts/rt-tester/ |
H A D | rt-tester.py | 123 fd = open(arguments[0]) 176 fsta = open(fname, 'r') 205 fcmd = open(fname, 'w')
|
/linux-4.1.27/tools/hv/ |
H A D | hv_fcopy_daemon.c | 86 target_fd = open(target_fname, hv_start_fcopy() 168 fcopy_fd = open("/dev/vmbus/hv_fcopy", O_RDWR); main() 171 syslog(LOG_ERR, "open /dev/vmbus/hv_fcopy failed; error: %d %s", main()
|
/linux-4.1.27/drivers/media/ |
H A D | media-devnode.c | 154 /* Override for the open function */ media_open() 161 * the media_devnode_lock held to prevent an open/unregister race: media_open() 180 if (mdev->fops->open) { media_open() 181 ret = mdev->fops->open(filp); media_open() 210 .open = media_open, 292 * This unregisters the passed device. Future open calls will be met with
|
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/ |
H A D | lmv_intent.c | 111 /* The parent fid is only for remote open to lmv_intent_remote() 112 * check whether the open is from OBF, lmv_intent_remote() 156 * IT_OPEN is intended to open (and create, possible) an object. Parent (pid) 175 /* If it is ready to open the file by FID, do not need lmv_intent_open() 180 * For open with IT_CREATE and for IT_CREATE cases allocate new lmv_intent_open() 225 * open file as directory and we will have -ENOTDIR here. As lmv_intent_open()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_proc.c | 52 .open = prism2_debug_proc_open, 103 .open = prism2_stats_proc_open, 159 .open = prism2_wds_proc_open, 230 .open = prism2_bss_list_proc_open, 260 .open = prism2_crypt_proc_open, 437 .open = prism2_scan_results_proc_open,
|
/linux-4.1.27/include/linux/pinctrl/ |
H A D | pinconf-generic.h | 55 * @PIN_CONFIG_DRIVE_OPEN_DRAIN: the pin will be driven with open drain (open 58 * config will enable open drain mode, the argument is ignored. 59 * @PIN_CONFIG_DRIVE_OPEN_SOURCE: the pin will be driven with open source 60 * (open emitter). Setting this config will enable open source mode, the
|
/linux-4.1.27/kernel/irq/ |
H A D | proc.c | 164 .open = irq_affinity_proc_open, 172 .open = irq_affinity_hint_proc_open, 179 .open = irq_affinity_list_proc_open, 234 .open = default_affinity_open, 255 .open = irq_node_proc_open, 278 .open = irq_spurious_proc_open,
|
/linux-4.1.27/drivers/iommu/ |
H A D | omap-iommu-debug.c | 146 .open = debug_open_##name, \ 154 .open = simple_open, \
|
/linux-4.1.27/drivers/isdn/isdnloop/ |
H A D | isdnloop.h | 52 #define ISDNLOOP_FLAGS_B1ACTIVE 1 /* B-Channel-1 is open */ 53 #define ISDNLOOP_FLAGS_B2ACTIVE 2 /* B-Channel-2 is open */
|
/linux-4.1.27/drivers/mtd/ |
H A D | mtd_blkdevs.c | 202 if (dev->open) blktrans_open() 211 if (dev->tr->open) { blktrans_open() 212 ret = dev->tr->open(dev); blktrans_open() 223 dev->open++; blktrans_open() 251 if (--dev->open) blktrans_release() 317 .open = blktrans_open, 486 /* If the device is currently open, tell trans driver to close it, del_mtd_blktrans_dev() 489 if (old->open) { del_mtd_blktrans_dev()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | htc_drv_debug.c | 72 .open = simple_open, 142 .open = simple_open, 188 .open = simple_open, 240 .open = simple_open, 284 .open = simple_open, 308 .open = simple_open, 355 .open = simple_open, 396 .open = simple_open,
|
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_pm.c | 39 "RTL819XE:UI is open out of suspend function\n"); rtl8192E_suspend() 104 "RTL819XE:UI is open out of resume function\n"); rtl8192E_resume()
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
H A D | debugfs.c | 150 .open = wil_vring_seq_open, 260 .open = wil_mbox_seq_open, 490 .open = wil_memread_seq_open, 537 .open = simple_open, 573 .open = simple_open, 621 .open = simple_open, 702 .open = simple_open, 739 .open = simple_open, 781 .open = simple_open, 886 .open = wil_txdesc_seq_open, 975 .open = wil_bf_seq_open, 1022 .open = simple_open, 1062 .open = wil_temp_seq_open, 1086 .open = wil_freq_seq_open, 1137 .open = wil_link_seq_open, 1186 .open = wil_info_seq_open, 1254 .open = simple_open, 1321 .open = wil_sta_seq_open,
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
H A D | armada_debugfs.c | 60 .open = armada_debugfs_reg_r_open, 100 .open = simple_open,
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_core.c | 134 if (subdrv->open) { exynos_drm_subdrv_open() 135 ret = subdrv->open(dev, subdrv->dev, file); exynos_drm_subdrv_open()
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_debugfs.c | 50 .open = simple_open, 94 .open = simple_open,
|
/linux-4.1.27/drivers/input/mouse/ |
H A D | atarimouse.c | 30 * Allow multiple open's 140 atamouse_dev->open = atamouse_open; atamouse_init()
|
/linux-4.1.27/drivers/gpu/drm/sis/ |
H A D | sis_drv.c | 70 .open = drm_open, 108 .open = sis_driver_open,
|
/linux-4.1.27/drivers/gpu/drm/via/ |
H A D | via_drv.c | 62 .open = drm_open, 79 .open = via_driver_open,
|