Lines Matching refs:device
126 * checks if the invoking user is local to the device
177 * Checks if the specified user has authorization for the device
254 (void) printf("device=%s%s", dm->dmap_devname, KV_DELIMITER);
290 (void) printf(gettext("device: %s "), dm->dmap_devname);
337 dprintf("Unable to find %s device files\n",
350 dprintf("device name %s is too long.\n",
374 * for this free device, check if -
377 * device
407 * the device is allocated.
436 * at which the device is allocated.
447 * for this free device, check if -
450 * device
488 list_devices(int optflag, uid_t uid, char *device, char *zonename)
504 * we need device.revoke to list someone else's devices
513 * we need device.allocate to list our devices
521 if (device) {
523 * list default attrs for this device type
525 da_defs = getdadeftype(device);
529 "%s\n", device);
553 if (device) {
560 if (class && (strcmp(class, device) == 0)) {
568 * list this device
570 if ((da = getdanam(device)) == NULL) {
618 * This could be a SunRay device that is in /tmp.
717 * mark as allocated any new device nodes that we
1017 dprintf("Unable to find %s in device map database\n",
1030 dprintf("Unable to find %s device files\n",
1043 dprintf("device name %s is too long.\n",
1072 * label at which the device is currently allocated is
1127 * if we are deallocating device owned by someone else,
1169 dprintf("Unable to find %s in device map database\n",
1177 dprintf("Unable to find %s device files\n",
1190 dprintf("device name %s is too long.\n",
1222 * check if label of the zone to which the device is being
1223 * allocated is within the device label range.
1242 dprintf("Couldn't force deallocate device %s\n",
1263 * device if required.
1272 "Error in device clean program %s\n",
1278 dprintf("allocate: Failed to mount device %s\n",
1353 allocate(int optflag, uid_t uid, char *device, char *zonename)
1371 while ((da = getdatype(device)) != NULL) {
1383 * label (zone name) at which this device is
1384 * being allocated. store this device entry.
1393 * allocate this device
1395 if ((da = getdanam(device)) == NULL) {
1399 if (system_labeled && da_check_logindevperm(device)) {
1407 * at which this device is being allocated. store this device
1431 deallocate(int optflag, uid_t uid, char *device, char *zonename)
1463 * we need to remove this device's allocation
1465 * store this device name.
1476 while ((da = getdatype(device)) != NULL) {
1486 * we need to remove this device's allocation
1488 * store this device name.
1501 if (class && (strcmp(class, device) == 0)) {
1508 * we need to remove this device's
1510 * device_allocate. store this device
1522 * deallocate this device
1524 if ((da = getdanam(device)) == NULL) {
1537 * we need to remove this device's allocation label
1539 * device name.
1564 /* if devlist is generated, never leave device in error state */
1574 dprintf("dev_file_name: no device list for %s\n",
1584 * checks the device label range against zone label, which is also
1617 dprintf("bad min_label for device %s\n",
1629 dprintf("bad max_label for device %s\n",
1643 dprintf("%s outside device label range: ", zlbl);
1670 dprintf("%s device label ", da->da_devname);
1682 dprintf("%s zone to which the device ", alloczone);
1731 * If the device pathname is not in /dev then create
1732 * a symbolic link to it and put the device in /dev
1815 * remove device node from zone.