Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-28 08:41:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kgdb_arch_set_breakpoint

Proto:int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt)

Type:int

Parameter:

TypeParameterName
struct kgdb_bkpt *bpt
734  type = BP_BREAKPOINT
735  err = 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
737  If err Then Return err
739  err = probe_kernel_write(): safely attempt to write to a location*@dst: address to write to*@src: pointer to the data that shall be written*@size: size of the data chunk* Safely write to address @dst from the buffer at @src. If a kernel fault
741  If Not err Then Return err
747  If mutex_is_locked - is the mutex locked*@lock: the mutex to be queried* Returns true if the mutex is locked, false if unlocked. Then Return -EBUSY
749  xt_poke_kgdb - Update instructions on a live kernel by kgdb*@addr: address to modify*@opcode: source of the copy*@len: length to copy* Only atomic text poke/set should be allowed when not doing early patching
751  type = BP_POKE_BREAKPOINT
753  Return 0