#include <stdbool.h>
#include <stdint.h>
#include <sys/kassert.h>
#include <sys/kdebug.h>
#include <sys/queue.h>
#include <sys/mbuf.h>
#include <sys/nic.h>
#include <sys/spinlock.h>
Go to the source code of this file.
◆ Debug_NICs()
void Debug_NICs |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Definition at line 46 of file nic.c.
47{
49
51 kprintf(
"nic%lld: %02x:%02x:%02x:%02x:%02x:%02x\n", n->
nicNo,
53 }
54}
int kprintf(const char *fmt,...)
#define LIST_FOREACH(var, head, field)
◆ LIST_HEAD()
LIST_HEAD |
( |
NICList |
, |
|
|
NIC |
|
|
) |
| |
Definition at line 16 of file nic.c.
21{
22 nic->nicNo = nextNICNo++;
24}
#define LIST_INSERT_HEAD(head, elm, field)
◆ NIC_GetByID()
Definition at line 33 of file nic.c.
34{
36
39 return n;
40 }
41
43}
◆ NIC_RemoveNIC()
void NIC_RemoveNIC |
( |
NIC * |
nic | ) |
|
Definition at line 27 of file nic.c.
28{
30}
#define LIST_REMOVE(elm, field)
◆ REGISTER_DBGCMD()
REGISTER_DBGCMD |
( |
nics |
, |
|
|
"List NICs" |
, |
|
|
Debug_NICs |
|
|
) |
| |