/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockcommon_sops.c | 868 so_ioctl(struct sonode *so, int cmd, intptr_t arg, int mode, argument 873 SO_BLOCK_FALLBACK(so, SOP_IOCTL(so, cmd, arg, mode, cr, rvalp)); 892 (error = sof_filter_ioctl(so, cmd, arg, mode, 894 (error = socket_ioctl_common(so, cmd, arg, mode, cr, rvalp)) < 0 && 895 (error = socket_strioc_common(so, cmd, arg, mode, cr, rvalp)) < 0) { 897 cmd, arg, mode, rvalp, cr);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fio.c | 1196 * if this is a socket in asynchronous mode, the FASYNC flag. 1376 fassign(vnode_t **vpp, int mode, int *fdp) argument 1382 if (error = falloc((vnode_t *)NULL, mode, &fp, &fd)) 1384 if (error = VOP_OPEN(vpp, mode, fp->f_cred, NULL)) { 1534 * Called from fchownat() and fchmodat() to set ownership and mode.
|
H A D | damap.c | 103 * mode: style of address reports: per-address or fullset 121 damap_create(char *name, damap_rptmode_t mode, int map_opts, argument 137 mapp->dam_rptmode = mode; 154 damap_rptmode_t, mode, int, map_opts, int, stable_usec);
|
/illumos-gate/usr/src/uts/i86pc/io/acpi_drv/ |
H A D | acpi_video.c | 616 acpi_video_ioctl(void *p, int cmd, intptr_t arg, int mode, cred_t *cr, argument 714 acpi_drv_hotkey_ioctl(int cmd, intptr_t arg, int mode, cred_t *cr, argument 721 return (acpi_video_ioctl(htkp->acpi_video, cmd, arg, mode, 725 return (htkp->vendor_ioctl(htkp, cmd, arg, mode, cr, rval));
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 71 mode_t fa_mode; /* mode for open() */ 570 mode_t mode) 588 fap->fa_mode = mode; 565 posix_spawn_file_actions_addopen( posix_spawn_file_actions_t *file_actions, int filedes, const char *path, int oflag, mode_t mode) argument
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 28 #include <sys/mode.h> 58 int mode, 64 if (mode & FREAD) 66 if (mode & FWRITE) 300 int mode, 381 int mode, 423 fd = openat(dvp->v_fd, name, omode, mode); 549 mode_t mode = vap->va_mode & 0777; local 551 if (mkdirat(dvp->v_fd, name, mode) == -1) 1280 v_mode_t mode) 56 fop_open( vnode_t **vpp, int mode, cred_t *cr, caller_context_t *ct) argument 298 fop_access( vnode_t *vp, int mode, int flags, cred_t *cr, caller_context_t *ct) argument 376 fop_create( vnode_t *dvp, char *name, vattr_t *vap, vcexcl_t excl, int mode, vnode_t **vpp, cred_t *cr, int flags, caller_context_t *ct, vsecattr_t *vsecp) argument 1278 vn_has_other_opens( vnode_t *vp, v_mode_t mode) argument 1312 vn_is_opened( vnode_t *vp, v_mode_t mode) argument 1347 vn_is_mapped( vnode_t *vp, v_mode_t mode) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | fs_subr.c | 253 v_mode_t mode; local 315 mode = (bfp->l_type == F_RDLCK) ? 317 if (vn_is_mapped(vp, mode)) {
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fsops.c | 73 * Convert the access mask to the open mode (for use 77 * will also translate into an FREAD or FWRITE open mode 87 int mode = 0; local 91 mode |= FREAD; 95 mode |= FWRITE; 98 mode |= FAPPEND; 100 return (mode); 104 smb_fsop_open(smb_node_t *node, int mode, cred_t *cred) argument 111 return (smb_vop_open(&node->vp, mode, cred)); 115 smb_fsop_close(smb_node_t *node, int mode, cred_ argument [all...] |
H A D | smb_node.c | 77 * bucket the lock must be entered in RW_WRITER mode. When both (mutex and 926 smb_node_start_crit(smb_node_t *node, krw_t mode) argument 928 rw_enter(&node->n_lock, mode); 929 nbl_start_crit(node->vp, mode);
|
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 796 * Parse a SCSI mode page change specification. 810 int mode; local 836 datafile_error("Unsupported mode page '%s'", id); 869 mode = CHG_MODE_UNDEFINED; 872 mode = CHG_MODE_ABS; 876 mode = CHG_MODE_SET; 880 mode = CHG_MODE_CLR; 883 if (mode == CHG_MODE_UNDEFINED) { 923 cp->mode = mode; [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/mac/ |
H A D | mac.c | 485 mac_srs_txmode2str(mac_tx_srs_mode_t mode) argument 487 switch (mode) { 532 * In verbose mode "::mac_srs -rcv or ::mac_srs -tcv", we print the CPUs
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vcc.c | 72 static int vcc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, 92 caddr_t buf, int mode); 93 static int i_vcc_del_cons_ok(vcc_t *vccp, caddr_t buf, int mode); 422 attr.mode = LDC_MODE_RAW; 1326 i_vcc_cons_tbl(vcc_t *vccp, uint_t num_ports, caddr_t buf, int mode) argument 1377 sizeof (vcc_console_t), mode)) { 1408 sizeof (vcc_console_t), mode) != 0) { 1456 i_vcc_cons_info(vcc_t *vccp, caddr_t buf, int mode) argument 1464 if (ddi_copyin((void*)buf, &portno, sizeof (uint_t), mode)) { 1502 sizeof (vcc_console_t), mode) ! 1519 i_vcc_inquiry(vcc_t *vccp, caddr_t buf, int mode) argument 1612 i_vcc_force_close(vcc_t *vccp, caddr_t buf, int mode) argument 1649 i_vcc_cons_status(vcc_t *vccp, caddr_t buf, int mode) argument 1694 i_vcc_ctrl_ioctl(vcc_t *vccp, int cmd, void* arg, int mode) argument 1791 i_vcc_port_ioctl(vcc_t *vccp, minor_t minor, int portno, int cmd, void *arg, int mode) argument 1945 vcc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_znode.c | 47 #include <sys/mode.h> 629 uint64_t mode; local 658 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, &mode, 8); 681 zp->z_mode = mode; 684 vp->v_type = IFTOVT((mode_t)mode); 767 uint64_t mode, size, links, parent, pflags; local 865 mode = acl_ids->z_mode; 914 NULL, &mode, 8); 921 NULL, &mode, 8); 974 mode 1187 uint64_t mode; local 1663 uint64_t mode; local 1937 uint64_t mode; local [all...] |
H A D | zfs_ctldir.c | 310 zfsctl_common_access(vnode_t *vp, int mode, int flags, cred_t *cr, argument 314 if (mode & ACE_ALL_WRITE_PERMS) 317 if (mode & VWRITE)
|
/illumos-gate/usr/src/cmd/mv/ |
H A D | mv.c | 1395 chg_mode(char *target, uid_t uid, gid_t gid, mode_t mode) argument 1400 /* Don't change mode if target is symlink */ 1412 if (mode & (S_ISUID | S_ISGID)) { 1414 mode &= ~S_ISUID & ~S_ISGID; 1418 if (chmod(target, mode) != 0) { 1471 mode_t fixmode = (mode_t)0; /* cleanup mode after copy */ 1637 mode_t mode; local 1668 gettext("%s: failed to set file mode" 1783 mode = FMODE(s3); 1795 if (mode [all...] |
/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 172 /* Get into char-at-a-time mode. */ 472 /* Get VBE mode information. */ 474 get_vbe_mode_info (int mode_number, struct vbe_mode *mode) argument 480 /* Set VBE mode. */ 1140 /* Raw mode. */
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 578 * network interface) into promiscuous mode. It is then up to the application 893 * interface is in promiscuous mode. Thus an ioctl to get the interface flags 894 * of an interface that has been put in promiscuous mode by another socket 1144 datalink_id_t *linkidp, int mode) 1149 if (ddi_copyin((void *)arg, ifreqp, sizeof (*ifreqp), mode) != 0) 1169 datalink_id_t *linkidp, int mode) 1174 if (ddi_copyin((void *)arg, lifreqp, sizeof (*lifreqp), mode) != 0) 1239 * mode are vectored through pfp_set_promisc() so that the logic for 1240 * managing the promiscuous mode is in one place. 1489 * Set the promiscuous mode o 1143 pfp_ifreq_getlinkid(intptr_t arg, struct ifreq *ifreqp, datalink_id_t *linkidp, int mode) argument 1168 pfp_lifreq_getlinkid(intptr_t arg, struct lifreq *lifreqp, datalink_id_t *linkidp, int mode) argument [all...] |
H A D | socksctp.c | 1431 sosctp_ioctl(struct sonode *so, int cmd, intptr_t arg, int mode, argument 1452 (mode & (int)FKIOCTL))) { 1466 (mode & (int)FKIOCTL))) { 1484 (mode & (int)FKIOCTL))) { 1496 sizeof (pid_t), (mode & (int)FKIOCTL))) 1511 (mode & (int)FKIOCTL))) 1521 (mode & (int)FKIOCTL))) 1527 if ((mode & FKIOCTL) == 0) 1547 STRUCT_INIT(opt, mode); 1550 (mode [all...] |
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_mac.c | 956 * that determine the hardware's default PAUSE (flow control) mode, 1023 /* Save off the requested flow control mode for use later. Depending 1024 * on the link partner's capabilities, we may or may not use this mode. 1965 * logic in hardware only works when mode is set to "on" 1966 * so it must be changed accordingly when the mode is 1971 u32 mode = (hw->mac.ledctl_mode2 >> i) & local 1976 (mode == E1000_LEDCTL_MODE_LED_ON)) || 1978 (mode == E1000_LEDCTL_MODE_LED_OFF))) { 2129 DEBUGOUT("Not in Adaptive IFS mode!\n"); 2157 DEBUGOUT("Not in Adaptive IFS mode!\ [all...] |
/illumos-gate/usr/src/uts/common/ipp/ |
H A D | ippctl.c | 496 int mode, 530 if ((rc = ippctl_copyin((caddr_t)arg, mode, &cbuf, 569 rc = ippctl_copyout((caddr_t)arg, mode, dbuf, dbuflen); 598 int mode, 615 switch (ddi_model_convert_from(mode & FMODELS)) { 623 sizeof (ippctl_ioctl32_t), mode) != 0) 632 mode) != 0) 643 mode) != 0) 668 if (ddi_copyin(ubuf, (caddr_t)kbuf, ubuflen, mode) != 0) { 683 int mode, 492 ippctl_ioctl( dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument 596 ippctl_copyin( caddr_t arg, int mode, char **kbufp, size_t *kbuflenp) argument 681 ippctl_copyout( caddr_t arg, int mode, char *kbuf, size_t kbuflen) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vnops.c | 201 int mode, 209 if (mode & VWRITE) { 214 return (VOP_ACCESS(vp, mode, flags, cr, ct)); 668 int mode, 686 error = VOP_CREATE(realvp(dvp), nm, va, exclusive, mode, &vp, cr, flag, 712 if ((error = VOP_ACCESS(dvp, mode, 0, cr, NULL)) == 0) { 199 lo_access( vnode_t *vp, int mode, int flags, struct cred *cr, caller_context_t *ct) argument 663 lo_create( vnode_t *dvp, char *nm, struct vattr *va, enum vcexcl exclusive, int mode, vnode_t **vpp, struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vgatext.c | 74 int mode; /* KD_TEXT or KD_GRAPHICS */ member in struct:vgatext_softc 186 static int vgatext_kdsetmode(struct vgatext_softc *softc, int mode); 472 /* only do this if not in graphics mode */ 538 do_gfx_ioctl(int cmd, intptr_t data, int mode, struct vgatext_softc *softc) argument 550 kd_mode = softc->mode; 551 if (ddi_copyout(&kd_mode, (void *)data, sizeof (int), mode)) 557 if (!(mode & FKIOCTL)) { 576 sizeof (struct vis_conscopy), mode)) 588 sizeof (display_request), mode)) 600 sizeof (cursor_request), mode)) 642 gfxp_vgatext_ioctl( dev_t dev, int cmd, intptr_t data, int mode, cred_t *cred, int *rval, gfxp_vgatext_softc_ptr_t ptr) argument 788 vgatext_kdsetmode(struct vgatext_softc *softc, int mode) argument [all...] |
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_nvram.c | 1871 __in uint32_t mode) 1880 data, chunk, mode)) != 0) { 1865 ef10_nvram_partn_read_mode( __in efx_nic_t *enp, __in uint32_t partn, __in unsigned int offset, __out_bcount(size) caddr_t data, __in size_t size, __in uint32_t mode) argument
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_rx.c | 2722 sfxge_rx_coalesce_mode_set(sfxge_t *sp, sfxge_rx_coalesce_mode_t mode) argument 2726 switch (mode) { 2737 sp->s_rx_coalesce_mode = mode;
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_persist.c | 422 mode_t mode; local 429 mode = IPADM_FILE_MODE; 432 mode = 0; 441 mode, db_op); 473 mode, db_op);
|