Framebuffer application programming practice of Linux Driver Development (i)

Source: Internet
Author: User

1. Framebuffer application Programming

(1) Open the device file

(2) Obtaining device information

Macro-defined commands in/linux/fb.h

Immutable information Fscreeninfo, using the IOCTL parameter has a Fbioget_fscreeninfo macro name, indicating the use of the IOCTL from the driver to obtain the unchanging information of the LCD device

Variable information vscreeninfo, using the IOCTL parameter with the Fbioget_vscreeninfo macro name, indicates that the variable information of the LCD device is obtained from the driver with the IOCTL

FB's driver framework divides all hardware information on the screen into two categories, one of which is immutable and cannot be changed by software (such as screen size, length, etc.). One type can be changed, for example, the resolution can be changed.

Two structures are defined in the kernel to represent variable and immutable information for LCD devices, as well as in/include/linux/fb.h

This article from "Whylinux" blog, declined reprint!

Framebuffer application programming practice of Linux Driver Development (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.