Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ksysfs.c Create Date:2022-07-28 07:42:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:type_show

Proto:static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct kobject *kobj
struct kobj_attribute *attr
char *buf
127  ret = kobj_to_setup_data_nr(kobj, & nr)
128  If ret Then Return ret
131  ret = get_setup_data_paddr(nr, & paddr)
132  If ret Then Return ret
134  data = memremap(paddr, size of data , MEMREMAP_WB)
135  If Not data Then Return -ENOMEM
138  If type == SETUP_INDIRECT Then ret = sprintf(buf, "0x%x\n", type)
140  Else ret = sprintf(buf, "0x%x\n", type)
142  memunmap(data)
143  Return ret