Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_owner.c Create Date:2022-07-28 16:23:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_page_owner

Proto: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)

Type:ssize_t

Parameter:

TypeParameterName
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  If Not kbuf Then Return -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  If ret >= count Then Go to 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  If ret >= count Then Go to 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  If ret >= count Then Go to err
379  If last_migrate_reason != -1 Then
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  If ret >= count Then Go to 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  If ret >= count Then Go to err
391  If copy_to_user(buf, kbuf, ret) Then ret = -EFAULT
394  kfree(kbuf)
395  Return ret
397  err :
398  kfree(kbuf)
399  Return -ENOMEM
Caller
NameDescribe
read_page_owner