1MAC_FIND_MODE(9)             Frame Buffer Library             MAC_FIND_MODE(9)
2
3
4

NAME

6       mac_find_mode - find a video mode
7

SYNOPSIS

9       int mac_find_mode(struct fb_var_screeninfo * var,
10                         struct fb_info * info, const char * mode_option,
11                         unsigned int default_bpp);
12

ARGUMENTS

14       var
15           frame buffer user defined part of display
16
17       info
18           frame buffer info structure
19
20       mode_option
21           video mode name (see mac_modedb[])
22
23       default_bpp
24           default color depth in bits per pixel
25

DESCRIPTION

27       Finds a suitable video mode. Tries to set mode specified by
28       mode_option. If the name of the wanted mode begins with 'mac', the Mac
29       video mode database will be used, otherwise it will fall back to the
30       standard video mode database.
31

NOTE

33       Function marked as __init and can only be used during system boot.
34
35       Returns error code from fb_find_mode (see fb_find_mode function).
36
38Kernel Hackers Manual 3.10         June 2019                  MAC_FIND_MODE(9)
Impressum