#include <libc.h>
Go to the source code of this file.
Data Structures | |
struct | t_gate_infos |
Defines | |
#define | GATE_NAME_SZ 64 |
#define | OK 0 |
#define | NOT_OK 1 |
Enumerations | |
enum | e_libgate_errors { ENOGATE = 2, EREGISTERED, ENOPROCESS, EGATEEMPTY, ENOCLASS, ECOPY } |
enum | gate_classes { CLASS_KERNEL = 1, CLASS_NETWORK, CLASS_ETHERNET } |
Functions | |
int | gatesrv_register (int class, int gate_id, int minor, char *manufacturer, char *dev_name) |
int | gatesrv_unregister (int gate_id) |
int | gatesrv_get_first (int class, t_gate_infos *gi, int *occur) |
int | gatesrv_get_next (int class, t_gate_infos *gi, int *occur) |
int | gatesrv_use (t_gate_infos *gi) |
int | gatesrv_unuse (t_gate_infos *gi) |
|
|
|
|
|
|
|
|
|
|
|
This call is used to get the first occurence of gates that are of a given class.
|
|
Gets the next occurence in the gate list of this class. Typical error is the fact that the user that used this function did not call gate_get_first before.
|
|
Registers a gate at the gate service.
|
|
Unregister the gate from the gate service.
|
|
Tells the gate srv that the program is done with a particular gate, and should not be notified anymore that the gate had a problem.
|
|
Tells the gate-srv that that particular gate shall be used. It is primordial for the process to use that function so that it can be notified when a gate dies (so that it won't call it again).
|