outp, outpw

outp, outpw — write values to hardware ports.

Syntax

outp (port, value)
outpw (port, value)

		

Arguments

port

A hardware port address.

value

A value to write to the port.

Returns

The value.

Description

These functions write a value to a hardware port. In order for these functions to succeed, the interpreter must be running with root permissions and a privity of 1, otherwise these functions may cause a segmentation fault.

The outp function writes a single byte to the specified port location. The outpw function writes a word (two bytes) to the specified port location.

Example

Examples of this function are beyond the scope of this documentation.

See Also

inp, inpw