Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)

Type:void

Parameter:

TypeParameterName
char *buffer
intmaxlen
struct mempolicy *pol
2945  p = buffer
2946  nodes = NODE_MASK_NONE
2947  mode = MPOL_DEFAULT
2948  flags = 0
2950  If pol && pol != un-time system-wide default policy => local allocation && Not (See set_mempolicy() MPOL_F_* above & Migrate On protnone Reference On Node ) Then
2951  mode = See MPOL_* above
2952  flags = See set_mempolicy() MPOL_F_* above
2956  Case mode == MPOL_DEFAULT
2957  Break
2958  Case mode == MPOL_PREFERRED
2963  Break
2964  Case mode == MPOL_BIND
2965  Case mode == MPOL_INTERLEAVE
2967  Break
2968  Default
2969  WARN_ON_ONCE(1)
2971  Return
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  If Not nodes_empty(nodes) Then p += scnprintf - 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*@