[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 2

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

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.*/

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]