Project

General

Profile

Actions

Bug #14915

open

truss should know about devctl ioctls

Added by Joshua M. Clulow about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

At the moment, truss does not print the symbolic names of the ioctls used by things like cfgadm:

igor # truss -t ioctl cfgadm -v -c disconnect -y usb2/1.1.3
ioctl(3, DINFOIDENT, 0x00000000)                = 57311
ioctl(3, 0x40DF01, 0x0803A698)                  = 67352
ioctl(3, DINFOUSRLD, 0x09035000)                = 69632
ioctl(3, DINFOIDENT, 0x00000000)                = 57311
ioctl(3, 0x10DF00, 0x0803A698)                  = 261552
ioctl(3, DINFOUSRLD, 0x09047000)                = 262144
ioctl(3, 0xDC0014, 0x0803AE30)                  = 0
ioctl(4, 0xDC0015, 0x0803AE94)                  = 0
ioctl(4, 0xDC0015, 0x0803AE94)                  = 0
ioctl(3, 0xDC000F, 0x0803AEA0)                  Err#5 EIO
cfgadm: Hardware specific failure: Cannot issue devctl to ap_id: /devices/pci@0,0/pci1028,577@1a/hub@1/hub@1:1.1.3

e.g., some of the above from uts/common/sys/devctl.h:

#define DEVCTL_IOC              (0xDC << 16)
...
#define DEVCTL_AP_DISCONNECT    (DEVCTL_IOC | 15)
...
#define DEVCTL_AP_GETSTATE      (DEVCTL_IOC | 20)
#define DEVCTL_AP_CONTROL       (DEVCTL_IOC | 21)

No data to display

Actions

Also available in: Atom PDF