git: Add a acpicall(8) utility for debugging and tweaking purposes.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Aug 31 11:02:15 PDT 2015


commit 279dd84605c1020984e2902ccf89d0d0c2dd8f2f
Author: Sascha Wildner <saw at online.de>
Date:   Mon Aug 31 20:01:31 2015 +0200

    Add a acpicall(8) utility for debugging and tweaking purposes.
    
    It is based on ports' sysutils/acpi_call (from Maxim Ignatenko) with
    a few changes by me:
    
    * Rename acpi_call -> acpicall.
    
    * Ioctl handling is in the main acpi.ko module.
    
    * To enable it, the debug.acpi.allow_method_calls tunable needs to
      be set.
    
    * In acpi_call, the mandatory -p option was used to pass the method's
      namespace path. I removed the option and made the path acpicall(8)'s
      argument.
    
    * Wrote a manual page and cleaned up a bit.
    
    The separate acpiio_mcall.h file was added because ACPIIO_DO_MCALL's
    argument struct uses ACPICA types, so it needs acpi.h which acpiio.h
    (a public header used by some ports) so far didn't need. So to avoid
    any hassle, I put the ACPIIO_DO_MCALL ioctl into a separate header
    (it's only used by acpicall(8) anyway).
    
    The changes to kdump(1) and truss(1) are to include and build with
    acpi.h.
    
    Tested-by: tollens

Summary of changes:
 share/man/man4/acpi.4                              |   8 +-
 sys/dev/acpica/acpi.c                              |  47 ++++
 sys/dev/acpica/acpiio_mcall.h                      |  39 +++
 usr.bin/kdump/Makefile                             |   4 +-
 usr.bin/kdump/mkioctls                             |   5 +
 usr.bin/truss/Makefile                             |   4 +-
 usr.sbin/acpi/Makefile                             |   1 +
 usr.sbin/acpi/acpibin/acpibin.8                    |   1 +
 usr.sbin/acpi/acpicall/Makefile                    |   8 +
 .../{acpihelp/acpihelp.8 => acpicall/acpicall.8}   | 142 ++++++-----
 usr.sbin/acpi/acpicall/acpicall.c                  | 275 +++++++++++++++++++++
 usr.sbin/acpi/acpiconf/acpiconf.8                  |   1 +
 usr.sbin/acpi/acpidump/acpidump.8                  |   1 +
 usr.sbin/acpi/acpiexec/acpiexec.8                  |   1 +
 usr.sbin/acpi/acpihelp/acpihelp.8                  |   1 +
 usr.sbin/acpi/acpinames/acpinames.8                |   1 +
 usr.sbin/acpi/acpixtract/acpixtract.8              |   1 +
 usr.sbin/acpi/iasl/iasl.8                          |   1 +
 18 files changed, 479 insertions(+), 62 deletions(-)
 create mode 100644 sys/dev/acpica/acpiio_mcall.h
 create mode 100644 usr.sbin/acpi/acpicall/Makefile
 copy usr.sbin/acpi/{acpihelp/acpihelp.8 => acpicall/acpicall.8} (52%)
 create mode 100644 usr.sbin/acpi/acpicall/acpicall.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/279dd84605c1020984e2902ccf89d0d0c2dd8f2f


-- 
DragonFly BSD source repository



More information about the Commits mailing list