Function report |
Source Code:kernel\power\hibernate.c |
Create Date:2022-07-28 09:59:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:disk_store
Proto:static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kobject * | kobj | |
| struct kobj_attribute * | attr | |
| const char * | buf | |
| size_t | n |
| 995 | error = 0 |
| 999 | mode = HIBERNATION_INVALID |
| 1001 | If Not hibernation_available() Then Return -EPERM |
| 1007 | lock_system_sleep() |
| 1008 | When i <= HIBERNATION_MAX cycle |
| 1009 | If len == strlen - Find the length of a string*@s: The string to be sized && Not strncmp(buf, hibernation_modes[i], len) Then |
| 1015 | If mode != HIBERNATION_INVALID Then |
| 1017 | Case mode == HIBERNATION_SHUTDOWN |
| 1018 | Case mode == HIBERNATION_REBOOT |
| 1022 | Case mode == HIBERNATION_TEST_RESUME |
| 1023 | hibernation_mode = mode |
| 1024 | Break |
| 1025 | Case mode == HIBERNATION_PLATFORM |
| 1026 | If hibernation_ops Then hibernation_mode = mode |
| 1034 | If Not error Then pm_pr_dbg("Hibernation mode set to '%s'\n", hibernation_modes[mode]) |
| 1037 | unlock_system_sleep() |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |