nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cpu_node.c File Reference
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <list.h>
#include <zone.h>
#include <cpu_node.h>
#include <debug.h>
Include dependency graph for cpu_node.c:

Go to the source code of this file.

Functions

struct nodecpu_node_create (int id)
 
int cpu_node_destroy (struct node *node)
 
struct nodecpu_node_find (int id)
 

Function Documentation

struct node* cpu_node_create ( int  id)

Definition at line 14 of file cpu_node.c.

References cpu_node_find(), node::head, node::id, malloc(), NULL, and node::zone_list.

Referenced by vm_frame_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int cpu_node_destroy ( struct node node)

Definition at line 35 of file cpu_node.c.

References destroy_zone(), free(), node::head, zone::head, list_entry, list_for_each_safe, and node::zone_list.

Here is the call graph for this function:

struct node* cpu_node_find ( int  id)

Definition at line 52 of file cpu_node.c.

References node::head, node::id, list_entry, list_for_each, and NULL.

Referenced by cpu_node_create().

Here is the caller graph for this function: