Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R1 | Option level |
R2 | Option number to read |
R3 | Pointer to buffer to receive value into |
R4 | Pointer to an integer containing the size of buffer provided |
Exit | |
---|---|
R0 | Corrupted |
The purpose of this call is to read one of the options for an open socket.
This SWI directly corresponds to the function getsockopt and would ordinarily be called from C using the getsockopt()
function in socklib.h
.
If the integer pointed to by R4 describes a buffer which is too small to receive the value, the value will be truncated to fit the buffer. If the buffer is sufficiently large, the integer pointed to by R4 will be updated with the actual number of bytes copied.