函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_simplefb

函数原型:__init int create_simplefb(const struct screen_info *si, const struct simplefb_platform_data *mode)

返回类型:int

参数:

类型参数名称
const struct screen_info *si
const struct simplefb_platform_data *mode
73  base等于视窗缓冲基底
74  如果能力按位与Frame buffer base is 64-bit base或等于0x3a 左移32位
76  如果非basebase不等于base
77  printk(debug-level messages "sysfb: inaccessible VRAM base\n")
78  返回:负EINVAL
89  size等于视窗缓冲大小
90  如果VGA标志恒等于VESA VGA in graphic mode size左移等于16位
92  length等于heightstride
93  如果length大于size
94  printk(warning conditions "sysfb: VRAM smaller than advertised\n")
95  返回:负EINVAL
97  length等于 align the pointer to the (next) page boundary (length)
100  memset( & res, 0, res的长度)
101  flags等于IORESOURCE_MEM按位或Driver has marked this resource busy
102  name等于simplefb_resname
103  start等于base
104  end等于startlength减1
105  如果end小于等于start则返回:负EINVAL
108  pd等于platform_device_register_resndata - add a platform-level device with* resources and platform-specific data*@parent: parent device for the device we're adding*@name: base name of the device we're adding*@id: instance id*@res: set of resources that needs to
110  返回:PTR_ERR_OR_ZERO(pd)