Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 280: |
Line 280: |
| '''Attention''': The kernel environment variables are also tunable. Before you play with them, reed the man pages. It is possible to crash your system with a false value. | | '''Attention''': The kernel environment variables are also tunable. Before you play with them, reed the man pages. It is possible to crash your system with a false value. |
| | | |
− | ===The Action Argument===
| |
| | | |
− | The action argument can be one of the following:
| |
| | | |
− | {|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"
| |
− | |-
| |
− | !scope="col" style="width: 100px;"|'''Action'''
| |
− | !scope="col" style="width: 500px;"|'''Desciption'''
| |
− | |-
| |
− | |KENV_GET || Get the value of the variable with the given name. The size
| |
− | of the value buffer is given by len, which should be at least
| |
− | KENV_MVALLEN + 1 bytes to avoid truncation and to ensure NUL
| |
− | termination.
| |
− | |-
| |
− | | KENV_SET|| Set or add a variable. The name and value are limited to
| |
− | KENV_MNAMELEN and KENV_MVALLEN characters, respectively (not
| |
− | including the NUL terminator.) The len argument indicates the
| |
− | length of the value and must include the NUL terminator.
| |
− | This option is only available to the superuser.
| |
− | |-
| |
− | |KENV_UNSET || Unset the variable with the given name. The value and len
| |
− | arguments are ignored. This option is only available to the
| |
− | superuser.
| |
− | |-
| |
− | |KENV_DUMP || Dump as much of the kernel environment as will fit in value,
| |
− | whose size is given in len. If value is NULL, kenv() will
| |
− | return the number of bytes required to copy out the entire
| |
− | environment. The name is ignored.
| |
| | | |
− | |}
| |
| | | |
| | | |