Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| char * | buffer | |
| int | maxlen | |
| struct mempolicy * | pol |
| 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 |
| 2956 | Case mode == MPOL_DEFAULT |
| 2957 | Break |
| 2958 | Case mode == MPOL_PREFERRED |
| 2959 | If flags & preferred local allocation Then mode = MPOL_LOCAL |
| 2961 | Else The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best( preferred , nodes) |
| 2963 | Break |
| 2965 | Case mode == MPOL_INTERLEAVE |
| 2966 | nodes = interleave/bind |
| 2967 | Break |
| 2968 | Default |
| 2969 | WARN_ON_ONCE(1) |
| 2971 | Return |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |