Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:s_show

Proto:static int s_show(struct seq_file *m, void *p)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *p
3601  va = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(p, structvmap_area, list)
3607  If Not in "busy" tree Then
3608  seq_printf(m, "0x%pK-0x%pK %7ld vm_map_ram\n", (void * )va_start, (void * )va_end, va_end - va_start)
3612  Return 0
3615  v = in "busy" tree
3617  seq_printf(m, "0x%pK-0x%pK %7ld", addr, addr + size, size)
3620  If caller Then seq_printf(m, " %pS", caller)
3623  If nr_pages Then seq_printf(m, " pages=%d", nr_pages)
3626  If phys_addr Then seq_printf(m, " phys=%pa", & phys_addr)
3629  If flags & remap() and friends Then seq_puts(m, " ioremap")
3632  If flags & vmalloc() Then seq_puts(m, " vmalloc")
3635  If flags & vmap()ed pages Then seq_puts(m, " vmap")
3638  If flags & suitable for remap_vmalloc_range Then seq_puts(m, " user")
3641  If flags & dma_alloc_coherent Then seq_puts(m, " dma-coherent")
3644  If Determine if an address is within the vmalloc range* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there* is no special casing required. Then seq_puts(m, " vpages")
3647  show_numa_info(m, v)
3648  seq_putc(m, '\n')
3656  If list_is_last - tests whether @list is the last entry in list @head*@list: the entry to test*@head: the head of the list Then show_purge_info(m)
3659  Return 0