Written intrusive linked list code