lkstm(8)

NAME
lkstm - Control maskset in LKST.

SYNOPSIS
lkstm command [ option(s) ]

DESCRIPTION
This command controls maskset in LKST, such as reading, writing, deletion, changing, and displaying list of all masksets.

COMMANDS

all Output a list of masksets and display content of all masksets.

exchange/xchg -m maskset_id
    Change currently selected maskset. And it displays an id of old maskset.

-m maskset_id
    Specify an id of a maskset to be selected.

delete/del -m maskset_id
    Delete a maskset.

-m maskset_id
    Specify an id of a maskset to be deleted.

list/ls
    Output a list of all masksets.

read [-m maskset_id] [-A] [-a] [-d]
    Output a content of maskset.

-m maskset_id
    Specify an id of a maskset to be read. If omitted, a currently selected maskset is read.

-A  Read all masksets.

-a  Do not omit not registered event type. It ignored if "-d" option is specified.

-d  Do not display a description of each event type.

set -m maskset_id
    Same as 'exchange' except for not displaying an id of old maskset.

write [-m maskset_id] [-f file_name] [-n maskset_name] [-S]
    Write a new maskset.

-m maskset_id
    Specify an id of the maskset to be written. If omitted, empty id is selected automatically.

-f file_name
    Specify a file which the content of the maskset is written. If ommited, standard input is used as input. This file can be created by "read" command as template.

-n maskset_name
    Specify a name of the maskset. If omitted, the name of the maskset is set as "new_maskset".

-S  Change a currently selected maskset to the written maskset.

version/ver
    Print version information.

help
    Print help message.

RETURN VALUE

0   success

Except 0
    failure

REFERENCES
lkst(8), ioctl(LKST_IOC_MASKSET_READ)(2), ioctl(LKST_IOC_MASKSET_WRITE)(2), ioctl(LKST_IOC_MASKSET_LIST)(2), ioctl(LKST_IOC_MASKSET_SET)(2), ioctl(LKST_IOC_MASKSET_DELETE)(2)