函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Fetch a null-terminated string. Caller MUST set *(u32 *)buf with max* length and relative data location.

函数原型:static inline __attribute__((__always_inline__)) int fetch_store_string(unsigned long addr, void *dest, void *base)

返回类型:int

参数:

类型参数名称
unsigned longaddr
void *dest
void *base
1066  maxlen等于get_loc_len( * (u32 * )dest)
1070  如果此条件成立可能性小(为编译器优化)(!maxlen)则返回:负ENOMEM
1073  __dest等于get_loc_data(dest, base)
1079  ret等于strncpy_from_unsafe(__dest, (void * )addr, maxlen)
1080  如果ret大于等于0则dest等于data_loc: data location, compatible with u32 (ret, __dest - base)
1083  返回:ret