題目1
考慮以下仿效 Linux 核心 include/linux/list.h 的精簡實作:
#include <stddef.h>
/**
* container_of() - Calculate address of object that contains address ptr
* @ptr: pointer to member variable
* @type: type of the structure containing ptr
* @member: name of the member variable in struct @type