cnode: move struct to cnode header