函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-29 11:06:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Ensures that file size is big enough to contain the current file* postion. This prevents gdb from complaining about a truncated file* if the last "write" to the file was dump_skip.

函数原型:void dump_truncate(struct coredump_params *cprm)

返回类型:void

参数:

类型参数名称
struct coredump_params *cprm
876  file等于file
879  如果llseekllseek不等于no_llseek
880  offset等于llseek(file, 0, seek relative to current file position )
881  如果NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they 小于offsetdo_truncate(dentry, offset, 0, file)