函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_page_owner

函数原型:static ssize_t print_page_owner(char __user *buf, size_t count, unsigned long pfn, struct page *page, struct page_owner *page_owner, depot_stack_handle_t handle)

返回类型:ssize_t

参数:

类型参数名称
char __user *buf
size_tcount
unsigned longpfn
struct page *page
struct page_owner *page_owner
depot_stack_handle_thandle
347  count等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, count, PAGE_SIZE)
348  kbuf等于kmalloc(count, GFP_KERNEL)
349  如果非kbuf则返回:负ENOMEM
352  ret等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
357  如果ret大于等于count则转到:err
361  pageblock_mt等于get_pageblock_migratetype(page)
362  page_mt等于gfpflags_to_migratetype(gfp_mask)
363  ret加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
371  如果ret大于等于count则转到:err
374  nr_entries等于stack_depot_fetch - Fetch stack entries from a depot*@handle: Stack depot handle which was returned from* stack_depot_save().*@entries: Pointer to store the entries address* Return: The number of trace entries for this depot.
375  ret加等于stack_trace_snprint - Print the entries in the stack trace into a buffer*@buf: Pointer to the print buffer*@size: Size of the print buffer*@entries: Pointer to storage array*@nr_entries: Number of entries in the storage array*@spaces: Number of leading
376  如果ret大于等于count则转到:err
379  如果last_migrate_reason不等于负1则
380  ret加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
383  如果ret大于等于count则转到:err
387  ret加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
388  如果ret大于等于count则转到:err
391  如果copy_to_user(buf, kbuf, ret)则ret等于负EFAULT
394  释放内存
395  返回:ret
397  err :
398  释放内存
399  返回:负ENOMEM
调用者
名称描述
read_page_owner