Searched refs:ioctl (Results 276 - 300 of 377) sorted by relevance

<<111213141516

/osnet-11/usr/src/lib/scsi/plugins/scsi/engines/uscsi/
H A Duscsi.c198 if (ioctl(dp->fd, USCSICMD, &cmd) < 0) {
215 return (libscsi_error(hp, ESCSI_SYS, "uscsi ioctl "
/osnet-11/usr/src/lib/sun_fc/common/
H A DHBA.cc363 Trace log("HBA::ioctl");
374 if (ioctl(fd, type, arg) != 0) {
/osnet-11/usr/src/lib/sun_sas/common/
H A Dsun_sas.c378 * Using ioctl to send uscsi command out
398 if (ioctl(fd, USCSICMD, ucmd) == -1) {
407 "ioctl send uscsi to devpath: %s failed: %s",
/osnet-11/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c71 if (ioctl(epp->dev_fd, DKIOCG_VIRTGEOM, &disk_geom)) {
76 * This means that the ioctl exists, but
87 /* save virtual geometry values obtained by ioctl */
94 if (ioctl(epp->dev_fd, DKIOCG_PHYGEOM, &disk_geom)) {
107 if (ioctl(epp->dev_fd, DKIOCGGEOM, &disk_geom)) {
118 * If DKIOCGMEDIAINFO ioctl succeeds, set the dki_lbsize as the
121 if (ioctl(epp->dev_fd, DKIOCGMEDIAINFO, (caddr_t)&disk_info) < 0) {
122 /* ioctl failed, falling back to default value of 512 bytes */
1421 * Issue the ioctl.
1441 /* Issue ioctl t
[all...]
/osnet-11/usr/src/lib/storage/libg_fc/common/
H A Dmap.c912 if (ioctl(fd, FCIO_GETMAP, map_ptr) != 0) {
913 I_DPRINTF(" FCIO_GETMAP ioctl failed\n");
981 I_DPRINTF(" FCIO_GET_HOST_PARAMS ioctl failed.\n");
999 * FCIO ioctl needs to be retried when it
1017 if (ioctl(fd, FCIO_CMD, fcio) != 0) {
1024 I_DPRINTF("FCIO ioctl failed.\n"
1054 * This function issues the FCP_TGT_INQUIRY ioctl to
1071 * Issue the ioctl to FCP
1076 /* if ioctl fails it is an error from Solaris operation. */
1077 if (ioctl(f
[all...]
H A Dhot.c159 * No SCSI_VHCI paths will work. No checks are done and we'll let the ioctl
175 * FCIO_RESET_LINK ioctl will fail with permission
200 " ioctl failed: %s\n", fp_path);
324 if (ioctl(fd, FCIO_FORCE_LIP) != 0) {
325 I_DPRINTF(" FCIO_FORCE_LIP ioctl failed.\n");
/osnet-11/usr/src/lib/libipp/
H A Dlibipp.c752 * Set up an ioctl structure to point at the packed nvlist.
759 * Issue a command ioctl, passing the ioctl structure.
763 if ((rc = ioctl(fd, IPPCTL_CMD, &iioc)) < 0) {
764 DBG0(DBG_ERR, "command ioctl failed\n");
805 * Set up an ioctl structure to point at the data buffer.
812 * Issue a data ioctl, passing the ioctl structure.
816 if ((rc = ioctl(fd, IPPCTL_DATA, &iioc)) < 0) {
817 DBG0(DBG_ERR, "data ioctl faile
[all...]
/osnet-11/usr/src/lib/fm/libldom/sparc/
H A Dldom.c187 if (ioctl(fh, MDESCIOCGSZ, &size) < 0) {
656 rc = ioctl(fd, cmd, &blr);
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/
H A Dchip_intel.c445 if (ioctl(mc_fd, MC_IOC_SNAPSHOT_INFO, &mcs) == -1 ||
447 ioctl(mc_fd, MC_IOC_SNAPSHOT, buf) == -1) {
/osnet-11/usr/src/cmd/hal/addons/cpufreq/
H A Daddon-cpufreq.c301 pm_ret = ioctl(pm_fd, PM_GET_CPUPM_STATE);
303 HAL_ERROR(("Error in ioctl PM_GET_CPUPM_STATE: %s \n",
320 pm_ret = ioctl(pm_fd, PM_GET_PM_STATE);
322 HAL_ERROR(("Error in ioctl PM_GET_PM_STATE: "
337 HAL_ERROR(("PM Internal error during ioctl "
342 HAL_ERROR(("Unknown value ioctl PM_GET_CPUPM_STATE"));
/osnet-11/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c19 #include <sys/ioctl.h>
505 if (ioctl(rfd, DKIOCGMEDIAINFO, &mi) != -1) {
509 /* driver supports ioctl, but media is not available */
512 /* driver does not support ioctl, e.g. lofi */
/osnet-11/usr/src/lib/libcurses/screen/
H A Dtgetch.c137 (void) ioctl(cur_term->_inputfd, FIONREAD, &arg);
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Ddrive.c587 if (ioctl(fd, DKIOCGTEMPERATURE, &temp) >= 0) {
1273 if (ioctl(fd, USCSICMD, &cmd) >= 0) {
1339 if (ioctl(fd, USCSICMD, &cmd) >= 0) {
1457 * Build and execute the uscsi ioctl
1482 status = ioctl(fd, USCSICMD, &ucmd);
/osnet-11/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c62 * wrapper for STREAMS I_STR ioctl.
74 if (ioctl(fd, I_STR, &str) == -1) {
93 int intv; /* integer return value (from ioctl) */
/osnet-11/usr/src/lib/libprtdiag_psr/sparc/opl/common/
H A Dopl_picl.c585 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
608 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
631 rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
675 /* ioctl failure */
681 /* ioctl failure */
715 /* ioctl failure */
726 /* ioctl failure */
754 /* ioctl failure */
773 /* ioctl failure */
/osnet-11/usr/src/lib/libcpc/common/
H A Dlibcpc.c593 if (ioctl(fd, CPCIO_BIND, &cpc_args) != 0) {
648 ret = ioctl(set->cs_fd, CPCIO_RELE, NULL);
698 return (ioctl(set->cs_fd, CPCIO_SAMPLE, &args));
/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdlvnic.c140 rc = ioctl(dladm_dld_fd(handle), ioc_cmd, &ioc);
192 rc = ioctl(dladm_dld_fd(handle), VNIC_IOC_INFO, &ioc);
346 rc = ioctl(dladm_dld_fd(handle), VNIC_IOC_DELETE, &ioc);
/osnet-11/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_sbd.c60 DBG("ioctl(%d SBD_CMD_GETNCM, 0x%p)\n", a->fd, (void *)ctl);
62 if (ioctl(a->fd, SBD_CMD_GETNCM, ctl) == -1) {
178 DBG("ioctl(%d SBD_CMD_STATUS, sc=0x%p sz=%d flags=%d",
184 if (ioctl(fd, SBD_CMD_STATUS, ctl) == -1) {
235 * necessary to issue the STATUS ioctl. The call however allows a
463 * command does not map to an ioctl, then there is
593 if (ioctl(a->fd, ioc, ctl) == -1) {
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_nameinfo.c500 int err = 0; /* saves errno from ioctl */
585 if (ioctl(fd, DKIOCGGEOM, &geom) != 0) {
738 err = ioctl(fd, DKIOCGGEOM, &geom);
813 if (ioctl(fd, DKIOCINFO, &cinfo) != 0) {
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_common.c769 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0) {
780 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) {
801 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifreq) < 0)
809 if (ioctl(fd, SIOCGIFNETMASK, (char *)&ifreq) < 0)
813 if (ioctl(fd, SIOCGIFADDR, (char *)&ifreq) < 0)
/osnet-11/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c60 #include <sys/ioctl.h>
2515 while ((retv = ioctl(fd, cmd, arg)) == -1) {
2586 "ioctl (get interface configuration): %m");
2619 "ioctl (get interface flags): %m");
2628 "ioctl (get interface netmask): %m");
2913 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0)
2931 * Ideally, this ioctl should also tell me, how many bytes were
2934 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) {
2936 "broadcast: ioctl (get interface configuration): %m");
2949 if (ioctl(f
[all...]
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo.c191 if (ioctl(fd, DINFOLODRV, driver) != 0) {
286 if (ioctl(fd, DINFOIDENT, NULL) != DI_MAGIC) {
296 if ((map_size = ioctl(fd, flag, &dinfo_io)) < 0) {
297 DPRINTF((DI_ERR, "devinfo ioctl failed with "
318 if (ioctl(fd, DINFOUSRLD, pa) != map_size) {
435 * Sibling doesn't exist, figure out if ioctl command
3142 if (ioctl(p->fd, OPROMSETNODEID, opp) < 0) {
3154 if ((ioctl(p->fd, OPROMNXTPROP, opp) < 0) || (opp->oprom_size == 0))
3177 if ((ioctl(p->fd, OPROMGETPROP, opp) < 0) ||
3305 if (ioctl(
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Dconf.c35 # include <sys/ioctl.h>
1381 #define LA_READKSYM 8 /* SVR4: use MIOC_READKSYM ioctl call */
1609 if (ioctl(kmem, MIOC_READKSYM, &mirk) < 0)
1612 sm_dprintf("getla: ioctl(MIOC_READKSYM) failed: %s\n",
2913 (void) ioctl(fd, TIOCNOTTY, (char *) 0);
4733 i = ioctl(s, SIOCGIFNUM, (char *) &numifs);
4738 i = ioctl(s, SIOCGLIFNUM, (char *)&lifn);
4769 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0)
4846 if (ioctl(s, SIOCGLIFFLAGS, (char *) &ifrf) < 0)
4952 if (ioctl(
[all...]
/osnet-11/usr/src/lib/libproject/common/
H A Dsetproject.c481 if (ioctl(fd, POOL_STATUSQ, &status) < 0) {
/osnet-11/usr/src/lib/libresolv2/include/
H A Dport_after.h524 int ioctl(int, int, caddr_t);

Completed in 271 milliseconds

<<111213141516