Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\fault-inject.c Create Date:2022-07-28 07:11:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_fault_attr() is a helper function for various __setup handlers, so it* returns 0 on error, because that is what __setup handlers do.

Proto:int setup_fault_attr(struct fault_attr *attr, char *str)

Type:int

Parameter:

TypeParameterName
struct fault_attr *attr
char *str
26  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments < 4 Then
28  printk(warning conditions "FAULT_INJECTION: failed to parse arguments\n")
30  Return 0
33  probability = probability
34  interval = interval
35  atomic_set( & times, times)
36  atomic_set( & space, space)
38  Return 1