Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   thorpej
Date:           Fri Sep 22 04:37:37 UTC 2006

Modified Files:
        src/sbin/drvctl: Makefile drvctl.8 drvctl.c
        src/sys/kern: kern_drvctl.c
        src/sys/sys: drvctlio.h

Log Message:
- Add a new DRVCTLCOMMAND ioctl to /dev/drvctl.  This is a generic
  "execute a command" ioctl that takes a dictionary as an argument
  (specifying the command and arguments) and returns a dictionary
  with the results (error code, optional error message, optional
  result data).

- Define and implement a "get-properties" command for DRVCTLCOMMAND
  that returns the properties dictionary of the specified device.

- Add a -p flag to drvctl(8) to fetch and display the properties of
  the specified device.

This is a great example of how to use prop_dictionary_sendrecv_ioctl().


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/sbin/drvctl/Makefile
cvs rdiff -r1.2 -r1.3 src/sbin/drvctl/drvctl.8
cvs rdiff -r1.4 -r1.5 src/sbin/drvctl/drvctl.c
cvs rdiff -r1.4 -r1.5 src/sys/kern/kern_drvctl.c
cvs rdiff -r1.2 -r1.3 src/sys/sys/drvctlio.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index