函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\main.c Create Date:2022-07-27 10:57:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:decode_state

函数原型:static suspend_state_t decode_state(const char *buf, size_t n)

返回类型:suspend_state_t

参数:

类型参数名称
const char *buf
size_tn
580  p等于memchr(buf, '\n', n)
581  len等于如果ppbuf否则n
584  如果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 则返回:PM_SUSPEND_MAX
596  返回:PM_SUSPEND_ON
调用者
名称描述
state_store