/illumos-gate/usr/src/uts/sun4/io/ |
H A D | rootnex.c | 103 int rootnex_ctl_reportdev_impl(dev_info_t *dev); 800 rootnex_ctl_reportdev(dev_info_t *dev) argument 802 return (rootnex_ctl_reportdev_impl(dev));
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc.c | 62 static int rdcclose(dev_t dev, int flag, int otyp, cred_t *crp); 63 static int rdcprint(dev_t dev, char *str); 64 static int rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, 449 rdcclose(dev_t dev, int flag, int otyp, cred_t *crp) argument 457 rdcprint(dev_t dev, char *str) argument 668 rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) argument
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 119 * /dev/dsk. Don't bother printing an error message in this case. 259 char *dev; local 262 * For whole disks, libdiskmgt does not include the leading dev path. 264 dev = strrchr(path, '/'); 265 assert(dev != NULL); 266 dev++; 267 if ((desc = dm_get_descriptor_by_name(DM_ALIAS, dev, &err)) != NULL) { 385 * /dev/dsk/xxx Complete disk path 387 * xxx Shorthand for /dev/dsk/xxx 421 * /dev/ds [all...] |
/illumos-gate/usr/src/uts/common/contract/ |
H A D | device.c | 360 static cont_device_t *contract_device_create(ctmpl_device_t *dtmpl, dev_t dev, 647 dev_t dev; local 672 dev = NODEV; 673 if (resolve_pathname(buf, NULL, &dev, &spec_type) != 0 || 674 dev == NODEV || dev == DDI_DEV_T_ANY || dev == DDI_DEV_T_NONE || 684 dev, spec_type, curproc, &error); 689 curproc->p_pid, dev, 1198 contract_device_create(ctmpl_device_t *dtmpl, dev_t dev, in argument 1324 contract_device_open(dev_t dev, int spec_type, contract_t **ctpp) argument 1417 wait_for_acks(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype) argument 1582 contract_device_publish(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype, nvlist_t *tnvl) argument 1941 contract_device_offline(dev_info_t *dip, dev_t dev, int spec_type) argument 1971 contract_device_degrade(dev_info_t *dip, dev_t dev, int spec_type) argument 1990 contract_device_undegrade(dev_info_t *dip, dev_t dev, int spec_type) argument 2010 contract_device_negend(dev_info_t *dip, dev_t dev, int spec_type, int result) argument 2037 contract_device_negotiate(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype) argument 2070 contract_device_finalize(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype, int ct_result) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | part.c | 251 ptable_gptread(struct ptable *table, void *dev, diskread_t dread) argument 270 if (dread(dev, buf, 1, 1) != 0) { 283 if (dread(dev, tbl, size, phdr->hdr_lba_table) == 0 && 292 if (dread(dev, buf, 1, offset) != 0) 317 if (dread(dev, tbl, size, phdr->hdr_lba_table) == 0 && 385 ptable_ebrread(struct ptable *table, void *dev, diskread_t dread) argument 411 if (dread(dev, buf, 1, offset) != 0) 463 ptable_bsdread(struct ptable *table, void *dev, diskread_t dread) argument 479 if (dread(dev, buf, 1, 1) != 0) { 545 ptable_vtoc8read(struct ptable *table, void *dev, diskread_ argument 633 ptable_dklabelread(struct ptable *table, void *dev, diskread_t dread) argument 693 ptable_open(void *dev, off_t sectors, uint16_t sectorsize, diskread_t *dread) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/ |
H A D | main.c | 192 struct devsw *dev; local 365 if (efi_handle_lookup(img->DeviceHandle, &dev, &unit, &pool_guid) != 0) 368 switch (dev->dv_type) { 373 currdev.d_dev = dev; 392 currdev.d_dev = dev;
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | devpoll.c | 55 static dp_entry_t **devpolltbl; /* dev poll entries */ 58 static kmutex_t devpoll_lock; /* lock protecting dev tbl */ 59 int devpoll_init; /* is /dev/poll initialized already */ 64 static int dpwrite(dev_t dev, struct uio *uiop, cred_t *credp); 65 static int dpioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, 67 static int dppoll(dev_t dev, short events, int anyyet, short *reventsp, 69 static int dpclose(dev_t dev, int flag, int otyp, cred_t *credp); 116 "/dev/poll driver", 135 * The /dev/poll driver shares most of its code with poll sys call whose 140 * This assumption is not true for /dev/pol 634 dpwrite(dev_t dev, struct uio *uiop, cred_t *credp) argument 1018 dpioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument 1428 dppoll(dev_t dev, short events, int anyyet, short *reventsp, struct pollhead **phpp) argument 1500 dpclose(dev_t dev, int flag, int otyp, cred_t *credp) argument [all...] |
H A D | signalfd.c | 24 * descriptor based: It is able use the event facilities (poll(2), /dev/poll, 27 * The signalfd lifecycle begins When a process opens /dev/signalfd. A minor 84 * descriptors (such as /dev/poll or event ports) will result in missed poll 494 signalfd_read(dev_t dev, uio_t *uio, cred_t *cr) argument 497 minor_t minor = getminor(dev); 565 signalfd_poll(dev_t dev, short events, int anyyet, short *reventsp, argument 569 minor_t minor = getminor(dev); 623 signalfd_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv) argument 626 minor_t minor = getminor(dev); 653 signalfd_close(dev_t dev, in argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | biosdisk.c | 94 #define BD(dev) (bdinfo[(dev)->d_unit]) 96 static int bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, 98 static int bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, 287 struct disk_devdesc dev; local 301 dev.d_dev = &biosdisk; 302 dev.d_unit = i; 303 dev.d_slice = -1; 304 dev.d_partition = -1; 305 if (disk_open(&dev, 333 struct disk_devdesc *dev; local 353 struct disk_devdesc *dev; local 367 struct disk_devdesc *dev; local 388 struct disk_devdesc *dev; local 403 struct disk_devdesc *dev = (struct disk_devdesc *)devdata; local 479 bd_edd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument 504 bd_chs_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument 538 bd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument 640 bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument 647 bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument 691 struct disk_devdesc *dev; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | psm_common.c | 128 /* look until a matching dev/pin is found */ 226 * Return bus/dev/fn for PCI dip (note: not the parent "pci" node). 827 * its attributes to PCI bus/dev/ipin and optionally to its associated ACPI 831 acpi_new_irq_cache_ent(int bus, int dev, int ipin, int pci_irq, argument 856 ep->dev = (uchar_t)dev; 867 * Searches the irq caches for the given bus/dev/ipin. 875 acpi_get_irq_cache_ent(uchar_t bus, uchar_t dev, int ipin, argument 887 (irqcachep->dev == dev) [all...] |
/illumos-gate/usr/src/uts/i86pc/io/xsvc/ |
H A D | xsvc.c | 59 static int xsvc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, 61 static int xsvc_devmap(dev_t dev, devmap_cookie_t dhp, offset_t off, size_t len, 137 static int xsvc_devmap_map(devmap_cookie_t dhp, dev_t dev, uint_t flags, 344 dev_t dev; local 348 dev = (dev_t)arg; 349 instance = getminor(dev); 412 xsvc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, int *rval) argument 423 instance = getminor(dev); 811 xsvc_devmap(dev_t dev, devmap_cookie_t dhp, offset_t off, size_t len, argument 827 instance = getminor(dev); 982 xsvc_devmap_map(devmap_cookie_t dhc, dev_t dev, uint_t flags, offset_t off, size_t len, void **pvtp) argument [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_metad_subr.c | 1837 md_dev64_t dev; local 1866 (void) snprintf(stringbuf, sizeof (stringbuf), "/dev/md/%s", setname); 1921 dev = NODEV64; 1935 dev = np->dev; 1944 sr->sr_setno, dev); 1946 MD_LOCAL_SET, dev);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_ctl.c | 32 char *dev; member in struct:larg 773 return (1); /* dev not found (insert case) */ 1474 if (largp->dev && strcmp(largp->dev, p) == 0) { 1508 larg.dev = dev_excl;
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 87 setdevaccess(char *dev, uid_t uid, gid_t gid, mode_t mode, argument 94 if (chown(dev, uid, gid) == -1) { 104 if (!((stat(dev, &st) == 0) && ((st.st_mode & S_IFMT) == S_IFBLK))) { 105 while (fdetach(dev) == 0) { 106 if (chown(dev, uid, gid) == -1) { 114 dev, strerror(local_errno)); 122 err = acl_strip(dev, uid, gid, mode); 137 dev, strerror(errno)); 141 if (chmod(dev, mode) == -1) { 146 dev, strerro [all...] |
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | os.c | 213 dev_t dev; /* Device number */ member in struct:lockKey 239 dev_t dev; /* Device number */ member in struct:openKey 309 key1.dev = statbuf.st_dev; 313 key2.dev = statbuf.st_dev;
|
/illumos-gate/usr/src/lib/libprtdiag/inc/ |
H A D | pdevinfo_sun4u.h | 176 char *dev; member in struct:ffbinfo
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 639 /* strip off "/dev/" */ 673 getty(dev_t dev) argument 679 if (dev == PRNODEV) 682 if ((retval = devlookup(dev)) != NULL) 685 retval = _ttyname_dev(dev, devname, sizeof (devname)); 686 return (devadd(retval, dev)); 805 (void) strcpy(ttyname, "/dev/");
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | natsemi.c | 213 static int natsemi_probe(struct dev *dev, struct pci_device *pci); 225 static void natsemi_disable(struct dev *dev); 243 natsemi_probe(struct dev *dev, struct pci_device *pci) argument 245 struct nic *nic = (struct nic *)dev; 318 dev->disable = natsemi_disable; 729 natsemi_disable(struct dev *dev) argument [all...] |
H A D | nic.c | 125 0, /* dev.disable */ 130 }, /* dev.devid */ 159 struct dev *dev; local 168 dev = &nic.dev; 169 dev->how_probe = -1; 170 dev->type = NIC_DRIVER; 171 dev->failsafe = 1; 174 probed = (eth_probe(dev) 180 eth_probe(struct dev *dev) argument [all...] |
/illumos-gate/usr/src/cmd/pcitool/ |
H A D | pcitool.c | 409 /* Bus dev func not from tble */ 753 int dev; local 816 * Loop through all valid bus / dev / func combinations to check for 819 * When nothing is found at function 0 of a bus / dev combination, skip 820 * the other functions of that bus / dev combination. 839 for (dev = first_dev; 840 ((dev <= last_dev) && (rval == SUCCESS)); dev++) { 841 prg.dev_no = dev; 1008 * prg provided has bus, dev, fun [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_subr.c | 57 * translate /dev name to a /devices path 66 const char *dev = "/dev/"; local 71 if (strncmp(alias, dev, strlen(dev)) == 0) { 73 * Treat /dev/... as a symbolic link 81 /* Fail to resolve /dev/ name, use the name as is */ 1256 "client not registered: module=%s, pid=%d, dev=%s\n"),
|
H A D | ttymux_rcm.c | 178 if (rsrc->dev == devt) 223 cache_create(const char *resource, dev_t dev) argument 229 rsrc->dev = dev; 254 dev_t dev; local 256 (void) get_devpath((char *)resource, NULL, &dev); 257 rsrc = cache_create(resource, dev); 445 major(link->user->dev), minor(link->user->dev), 446 major(link->used->dev), mino 658 get_devpath(char *dev, char **cname, dev_t *devt) argument 736 locate_node(dev_t dev, di_node_t *root) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rarpd.c | 68 #define DEVIP "/dev/ip" /* path to ip driver */ 69 #define DEVARP "/dev/arp" /* path to arp driver */ 401 char *dev; local 461 dev = rdev->device; 464 dev = ifdev->ldevice; 467 get_ifdata(dev, unit, &ifdev->if_ipaddr, &ifdev->if_netmask); 856 get_ifdata(char *dev, int unit, ipaddr_t *ipp, ipaddr_t *maskp) argument 874 (void) snprintf(ifr.ifr_name, sizeof (ifr.ifr_name), "%s%d", dev, unit); 881 debug("device %s%d address %s", dev, unit, 893 debug("device %s%d subnet mask %s", dev, uni [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/nsctl/ |
H A D | nsctl.c | 827 nsc_dev_t *dev; local 862 "pending dev structs"); 874 dev = mdb_zalloc(sizeof (*dev), UM_SLEEP | UM_GC); 876 if (mdb_vread(dev, sizeof (*dev), addr) != sizeof (*dev)) { 881 if (mdb_readstr(path, sizeof (path), (uintptr_t)dev->nsc_path) == -1) { 882 mdb_warn("failed to read nsc_path at %p", dev->nsc_path); 887 mdb_printf("%-?s %8Tref pend rpnd wait path\n", "dev"); [all...] |
/illumos-gate/usr/src/cmd/rmvolmgr/ |
H A D | rmm_common.c | 802 const char *dev, const char *udi, LibHalVolume *v, 810 if (strcmp(name, dev) == 0) { 813 (void) snprintf(dev_str, sizeof (dev_str), "%s %s", name, dev); 853 mountp = rmm_get_mnttab_mount_point(dev); 888 const char *dev, *d_dev; local 936 dev = libhal_volume_get_device_file(v); 938 if ((udi == NULL) || (dev == NULL)) { 952 ret = rmm_action_one(hal_ctx, name, action, dev, udi, v, 801 rmm_action_one(LibHalContext *hal_ctx, const char *name, action_t action, const char *dev, const char *udi, LibHalVolume *v, char **opts, int num_opts, char *mountpoint) argument
|