Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\main.c Create Date:2022-07-28 09:56:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:decode_state

Proto:static suspend_state_t decode_state(const char *buf, size_t n)

Type:suspend_state_t

Parameter:

TypeParameterName
const char *buf
size_tn
580  p = memchr(buf, '\n', n)
581  len = If p Then p - buf Else n
584  If len == 4 && str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to Then Return PM_SUSPEND_MAX
596  Return PM_SUSPEND_ON
Caller
NameDescribe
state_store