初期 vmlist = NULL(終端) 1個追加 vmlist = vm_struct のポインタ(a とする) a->next = NULL(終端) もう 1個追加 vmlist = vm_struct のポインタ(b とする) b->next = vm_struct のポインタ(a とする) a->next = NULL(終端) 図示するとこんな感じ -------------------- vmlist ↓ ------------- (b) | vm_struct | | | next | ------------- ↓ ------ ↓ ------------- (a) | vm_struct | | | next | <- NULL -------------
struct vm_struct *vmlist;
struct vm_struct *vmlist;