Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hwconf(2) — bsd — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hwconf(8)

HWCONF(2-BSD)



HWCONF(2-BSD)       RISC/os Reference Manual        HWCONF(2-BSD)



NAME
     hwconf - get or set hardware configuration information

SYNOPSIS
     #include <machine/hwconf.h>

     hwconf(option, conf)
     int option;
     struct hwconfig *conf;

DESCRIPTION
     The hwconf system call allows a user process to get or set
     hardware configuration information.  The specific contents
     of the hardware configuration structure is dependent upon
     the particular release of the kernel and the hardware confi-
     guration, but typical contents include MIPS chip types and
     revision numbers, MIPS board types and revision numbers and
     serial numbers, and non-volatile RAM, NVRAM, environment
     variables names and values.

     option indicates whether the hardware configuration informa-
     tion should be retrieved or modified.

     option may be one of:

     HWCONF_GET          Return the hardware configuration infor-
                         mation

     HWCONF_SET          Set the specified NVRAM environment
                         variable to the value indicated in conf.
                         To use this option, call hwconf with the
                         HWCONF_GET option, modify the value for
                         the desired NVRAM variable, and then
                         call hwconf with the HWCONF_SET option.
                         Must be super-user.

RETURN VALUE
     hwconf returns the a -1 on failure with errno set to the
     specific error.

ERRORS
     [EINVAL]       option is not one of HWCONF_GET or
                    HWCONF_SET.

     [EFAULT]       conf is not accessable.

     [EACCES]       Attempt to modify NVRAM environment variable
                    when not super-user.

SEE ALSO
     hwconf(8) in the System Administrator's Reference Manual.
     The Technical Reference that accompanied your RISComputer.



                         Printed 1/15/91                   Page 1





HWCONF(2-BSD)       RISC/os Reference Manual        HWCONF(2-BSD)



WARNING
     MIPS memory board idprom information should be added.





















































 Page 2                  Printed 1/15/91



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026