#include "gm_call_trace.h"#include "gm_compiler.h"#include "gm_debug.h"#include "gm_debug_open.h"#include "gm_internal.h"#include "gm_enable_ethernet.h"#include "gm_enable_security.h"#include "gm_enable_trace.h"Functions | |
| GM_ENTRY_POINT gm_status_t | gm_open (gm_port_t **port_p, unsigned unit, unsigned port_id, const char *client_type, enum gm_api_version api_version) |
|
||||||||||||||||||||||||
|
gm_open() opens a GM port port_p for LANai interface unit, a pointer to the port's state at *port_p. The pointer must be passed to all subsequent functions that operate on the opened port. port_id is a null-terminated ASCII string that is used to identify the port client for debugging (and potentially other) purposes; pass in the name of your program. Note that unit and port numbers start at 0, and that ports 0 (internal use) and 1 (mapper) and 3 (ethernet emulation) are reserved, so clients should use port 2 and ports 4-7. gm_open() is to be called by clients other than the daemon and mapper.
|
1.4.4