函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:resume_store

函数原型:static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n)

返回类型:ssize_t

参数:

类型参数名称
struct kobject *kobj
struct kobj_attribute *attr
const char *buf
size_tn
1054  len等于n
1057  如果lenbuf[len - 1]恒等于'\n'则len自减
1059  name等于kstrndup(buf, len, GFP_KERNEL)
1060  如果非name则返回:负ENOMEM
1063  res等于name_to_dev_t(name)
1064  释放内存
1065  如果非res则返回:负EINVAL
1068  lock_system_sleep()
1069  swsusp_resume_device等于res
1070  unlock_system_sleep()
1071  pm_pr_dbg("Configured resume from disk to %u\n", swsusp_resume_device)
1072  noresume等于0
1073  software_resume - Resume from a saved hibernation image.* This routine is called as a late initcall, when all devices have been* discovered and initialized already.* The image reading code is called to see if there is a hibernation image
1074  返回:n