These functions query 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 inp function reads a single byte from the specified port location. The inpw function reads a word (two bytes) from the specified port location.