函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:07:03
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpol_to_str - format a mempolicy structure for printing*@buffer: to contain formatted mempolicy string*@maxlen: length of @buffer*@pol: pointer to mempolicy to be formatted* Convert @pol into a string

函数原型:void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)

返回类型:void

参数:

类型参数名称
char *buffer
intmaxlen
struct mempolicy *pol
2945  p等于buffer
2946  nodes等于NODE_MASK_NONE
2947  mode等于MPOL_DEFAULT
2948  flags等于0
2950  如果polpol不等于un-time system-wide default policy => local allocation且非See set_mempolicy() MPOL_F_* above 按位与Migrate On protnone Reference On Node 的值则
2951  mode等于See MPOL_* above
2952  flags等于See set_mempolicy() MPOL_F_* above
2956  :mode恒等于MPOL_DEFAULT
2957  退出
2958  :mode恒等于MPOL_PREFERRED
2959  如果flags按位与preferred local allocation mode等于MPOL_LOCAL
2963  退出
2964  :mode恒等于MPOL_BIND
2965  :mode恒等于MPOL_INTERLEAVE
2967  退出
2968  默认
2969  WARN_ON_ONCE(1)
2971  返回
2974  p加等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
2988  如果非nodes_empty(nodes)则p加等于格式化输出字符串