KSVOLUME (Set Alarm Volume) ioctl

Purpose

Sets alarm volume.

Syntax

#include <sys/inputdd.h>int ioctl (FileDescriptor, KSVOLUME, Arg)

int  FileDescriptor;
uint * Arg;

Description

The KSVOLUME ioctl subroutine call sets the alarm volume.

When keyboard diagnostics are enabled, the KSVOLUME ioctl subroutine call fails and sets the errno global variable to a value of EBUSY.

Parameters

Item Description
FileDescriptor Specifies the open file descriptor for the keyboard.
Arg Specifies an integer that contains one of the following values:
#define KSAVOLOFF   0   /*Turns off alarm.*/
#define KSAVOLLOW   1   /*Sets alarm to low volume.*/
#define KSAVOLMED   2   /*Sets alarm to medium volume*/
#define KSAVOLHI    3   /*Sets alarm to high volume.*/