res_mgmt.h
来自「6440linuxDriver的源代码」· C头文件 代码 · 共 35 行
H
35 行
#ifndef __RES_MGMT_H__#define __RES_MGMT_H__#include "com_type.h"struct mv_request_pool { struct list_head free_list; struct list_head use_list; void *req_mem; /* starting address of the request mem pool */ spinlock_t lock; MV_U32 mod_id; MV_U32 size;};/* request structure related * mod_id : id of the module that is making the request * size : size of the pool, measured in the number of requests * sg_count : scatter gather list entries supported by each request */struct mv_request_pool *res_reserve_req_pool(MV_U32 mod_id, MV_U32 size, MV_U32 sg_count);struct _MV_Request *res_get_req_from_pool(struct mv_request_pool *pool);void res_free_req_to_pool(struct mv_request_pool *pool, struct _MV_Request *req);void res_release_req_pool(struct mv_request_pool *pool);void res_dump_pool_info(struct mv_request_pool *pool);#endif /* __RES_MGMT_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?