void arp_inithook(struct arp_hook *hook, unsigned int (*match)(unsigned short htype, unsigned char hlength, unsigned short ptype, unsigned char plength), unsigned char *(*lookup)(void *paddress)) { list_inititem(&hook->item, hook); hook->match = match; hook->lookup = lookup; }
void core_init(struct core *core, unsigned int id, unsigned int sp, struct task *task) { list_inititem(&core->item, core); resource_init(&core->resource, RESOURCE_CORE, core); core->id = id; core->sp = sp; core->task = task; }