函数逻辑报告 |
Source Code:mm\vmalloc.c |
Create Date:2022-07-27 16:29:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:vmap - map an array of pages into virtually contiguous space*@pages: array of page pointers*@count: number of pages to map*@flags: vm_area->flags*@prot: page protection for the mapping* Maps @count pages from @pages into contiguous kernel virtual* space
函数原型:void *vmap(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page ** | pages | |
unsigned int | count | |
unsigned long | flags | |
pgprot_t | prot |
2425 | might_sleep() |
2427 | 如果count大于totalram_pages()则返回:NULL |
2430 | size等于count左移PAGE_SHIFT determines the page size 位 |
2431 | area等于get_vm_area_caller(size, flags, __builtin_return_address(0)) |
2432 | 如果非area则返回:NULL |
2435 | 如果map_vm_area(area, prot, pages)则 |
2440 | 返回:addr |
名称 | 描述 |
---|---|
relay_alloc_buf | lay_alloc_buf - allocate a channel buffer*@buf: the buffer struct*@size: total size of the buffer* Returns a pointer to the resulting buffer, %NULL if unsuccessful. The* passed in size will get page aligned, if it isn't already. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |