Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\jump_label.c Create Date:2022-07-28 13:48:56
Last Modify:2020-03-17 20:59:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__jump_label_mod_text_reserved

Proto:static int __jump_label_mod_text_reserved(void *start, void *end)

Type:int

Parameter:

TypeParameterName
void *start
void *end
543  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
544  mod = __module_text_address - get the module whose code contains an address.*@addr: the address.* Must be called with preempt disabled or module mutex held so that* module doesn't get freed during this.
545  WARN_ON_ONCE(__module_text_address - get the module whose code contains an address.*@addr: the address.* Must be called with preempt disabled or module mutex held so that* module doesn't get freed during this. != mod)
546  preempt_enable()
548  If Not mod Then Return 0
552  Return __jump_label_text_reserved(jump_entries, jump_entries + num_jump_entries, start, end)
Caller
NameDescribe
jump_label_text_reservedjump_label_text_reserved - check if addr range is reserved*@start: start text addr*@end: end text addr* checks if the text addr located between @start and @end* overlaps with any of the jump label patch addresses