Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\badblocks.c Create Date:2022-07-28 17:24:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:adblocks_store() - sysfs access to bad-blocks list*@bb: the badblocks structure that holds all badblock information*@page: buffer received from sysfs*@len: length of data received from sysfs*@unack: weather to show unacknowledged badblocks* Return:

Proto:ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, int unack)

Type:ssize_t

Parameter:

TypeParameterName
struct badblocks *bb
const char *page
size_tlen
intunack
525  Case sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments == 3
526  If newline != '\n' Then Return -EINVAL
529  Case sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments == 2
530  If length <= 0 Then Return -EINVAL
532  Break
533  Default
534  Return -EINVAL
537  If adblocks_set() - Add a range of bad blocks to the table Then Return -ENOSPC
539  Else Return len