Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:resume_store

Proto:static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n)

Type:ssize_t

Parameter:

TypeParameterName
struct kobject *kobj
struct kobj_attribute *attr
const char *buf
size_tn
1054  len = n
1057  If len && buf[len - 1] == '\n' Then len--
1059  name = kstrndup(buf, len, GFP_KERNEL)
1060  If Not name Then Return -ENOMEM
1063  res = name_to_dev_t(name)
1064  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
1065  If Not res Then Return -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  Return n