Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-28 09:43:53
Last Modify:2020-03-17 13:39:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_feat_set

Proto:static int sched_feat_set(char *cmp)

Type:int

Parameter:

TypeParameterName
char *cmp
104  neg = 0
106  If strncmp(cmp, "NO_", 3) == 0 Then
107  neg = 1
108  cmp += 3
111  i = match_string - matches given string in an array*@array: array of strings*@n: number of strings in the array or -1 for NULL terminated arrays*@string: string to match with* Return:* index of a @string in the @array if matches, or %-EINVAL otherwise.
112  If i < 0 Then Return i
115  If neg Then
116  sysctl_sched_features &= ~(1UL << i)
117  sched_feat_disable(i)
118  Else
119  sysctl_sched_features |= 1UL << i
120  sched_feat_enable(i)
123  Return 0
Caller
NameDescribe
sched_feat_write