初步完成几个函数

Signed-off-by: Meathill <meathill@gmail.com>