函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_support.c Create Date:2022-07-27 12:47:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kdb_putarea_size - Write an area of data. The kdb equivalent of* copy_to_user, with kdb messages for invalid addresses.* Inputs:* addr Address of the area to write to.* res Pointer to the area holding the data.* size Size of the area.* Returns:

函数原型:int kdb_putarea_size(unsigned long addr, void *res, size_t size)

返回类型:int

参数:

类型参数名称
unsigned longaddr
void *res
size_tsize
353  ret等于probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
354  如果ret
355  如果非KDB_STATE(SUPPRESS)则
356  kdb_printf("kdb_putarea: Bad address 0x%lx\n", addr)
359  ret等于KDB_BADADDR
360  否则
361  KDB_STATE_CLEAR(SUPPRESS)
363  返回:ret