Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:33:17
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Insert a new shared policy into the list. Caller holds sp->lock for* writing.

Proto:static void sp_insert(struct shared_policy *sp, struct sp_node *new)

Type:void

Parameter:

TypeParameterName
struct shared_policy *sp
struct sp_node *new
2342  p = rb_node
2343  struct rb_node * parent = NULL
2346  When p cycle
2347  parent = p
2348  nd = rb_entry(parent, structsp_node, nd)
2349  If start < start Then p = rb_left
2351  Else if end > end Then p = rb_right
2353  Else BUG()
2356  rb_link_node( & nd, parent, p)
2357  rb_insert_color( & nd, & root)
2358  pr_debug("inserting %lx-%lx: %d\n", start, end, policy ? See MPOL_* above : 0)
Caller
NameDescribe
shared_policy_replaceReplace a policy range.