Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-28 20:30:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void dump_truncate(struct coredump_params *cprm)

Type:void

Parameter:

TypeParameterName
struct coredump_params *cprm
876  file = file
879  If llseek && llseek != no_llseek Then
880  offset = llseek(file, 0, seek relative to current file position )
881  If 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 < offset Then do_truncate(dentry, offset, 0, file)