Query: kvar
OS: ultrix
Section: 8
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
kvar(8) System Manager's Manual kvar(8) Name kvar - modify RISC kernel variables in memory or on disk Syntax /usr/etc/kvar -r(b|w|l) [options] vmunix /usr/etc/kvar -w(b|w|l) [options] vmunix Description The command allows you to read or write RISC kernel variables, either in the on-disk image of or the active in-memory image. The -r form of the command does variable reads; the -w form does variable writes. The variable length qualifiers are: b (1 byte), w (word, or 2 bytes), and l (longword, or 4 bytes). Variable contents are displayed in hexadecimal format. Options -a address Specifies the address of the kernel variable. Either the -a or -s option must be specified. The address is specified as either a positive decimal or hexadecimal constant. -k Instructs to use the in-memory image of The default is to use the on-disk copy. -l Searches for a local symbol. The default is a global symbol search. -o offset Adds an offset to the address (or address of the symbol name). The offset value is specified as either a positive decimal or hexadecimal constant. -s name Specifies the name of the kernel variable. -v value Specifies the new value to be assigned by the -w form of The -v option is ignored if the -r form of is being used. The value is specified as either a positive decimal or hexadecimal constant. Restrictions You must have appropriate file access permissions for (and for with the -k option). The command is available only on RISC systems. For VAX systems, use to modify kernel variables. Examples This example reads the variable `udpcksum' from the running kernel image: % kvar -k -rl -s udpcksum /vmunix This example sets the `xyz' variable to zero in the running kernel image: % kvar -k -wl -s xyz -v 0 /vmunix This example sets the variable `xyz' to -1 in the on-disk image of making this value persistent across reboots: % kvar -wl -s xyz -v 0xffffffff /vmunix This example sets to zero 1 byte at offset 2 from address 0x80161a98 in the running kernel image: % kvar -k -wb -o 2 -a 0x80161a98 /vmunix Files See Also adb(1), dbx(1) RISC kvar(8)
Related Man Pages |
---|
ramsize(8) - redhat |
rdev(8) - redhat |
rootflags(8) - redhat |
vparreloc(1m) - hpux |
ramsize(8) - suse |
Similar Topics in the Unix Linux Community |
---|
How to use tee with stdout and stderr? |
syslog.log - hp-ux |
substitution help |
BreakPoint Command Not found error |
awk match two fields in two files |