函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmalloc.c Create Date:2022-07-27 16:30:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aligned_vwrite

函数原型:static int aligned_vwrite(char *buf, char *addr, unsigned long count)

返回类型:int

参数:

类型参数名称
char *buf
char *addr
unsigned longcount
2857  copied等于0
2859 count循环
2862  offset等于offset_in_page(addr)
2863  length等于PAGE_SIZEoffset
2864  如果length大于countlength等于count
2866  p等于Walk a vmap address to the struct page it maps.
2874  如果p
2879  map等于kmap_atomic(p)
2883  addr加等于length
2884  buf加等于length
2885  copied加等于length
2886  count减等于length
2888  返回:copied
调用者
名称描述
vwritevwrite() - write vmalloc area in a safe way.*@buf: buffer for source data*@addr: vm address.*@count: number of bytes to be read.* This function checks that addr is a valid vmalloc'ed area, and* copy data from a buffer to the given addr