Go to the first, previous, next, last section, table of contents.


write_sel_addr

Syntax

#include <debug/dbgcom.h>

void write_sel_addr (unsigned sel, unsigned offset,
                     void *buf, unsigned len);

Description

This function transfers len bytes from the buffer pointed to by buf in the data segment whose selector is sel, at offset offset. The companion function read_sel_addr (see section read_sel_addr) is usually called before write_sel_addr to save the original contents, if needed.

Return Value

The function return zero if it has successfully transferred the data, non-zero otherwise (e.g., if the address in offset is outside the limits of the sels segment).

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.