The k project

Serial Driver

Description

Before the USB arrived, we used Serial port to communicate with devices.

Syscall interface

NAME
    recv - receive data from a serial port
SYNOPSIS
    int recv(int port, void* data, unsigned int len)
DESCRIPTION
    recv() receives len bytes from port and stores them at the address
    pointed by data.
RETURN VALUE
    recv() returns the number of bytes received or -1 if an error occured.

Possible bug causes