pub struct FramebufferResource {
pub source_device_id: usize,
pub logical_name: String,
pub config: FramebufferConfig,
pub physical_addr: usize,
pub size: usize,
pub created_char_device_id: RwLock<Option<usize>>,
}Expand description
Framebuffer resource extracted from graphics devices
Fields§
§source_device_id: usizeDeviceManager’s device id
logical_name: StringLogical name for user access (e.g., “fb0”)
config: FramebufferConfigFramebuffer configuration (resolution, format, etc.)
physical_addr: usizePhysical memory address of the framebuffer
size: usizeSize of the allocated framebuffer memory in bytes (page-aligned). This is the actual allocated size, which may be larger than the logical framebuffer size (config.size()) due to page alignment requirements. Use this size for memory mapping operations. For the logical pixel data size, use config.size() instead.
created_char_device_id: RwLock<Option<usize>>ID of the created /dev/fbX character device (if any)
Implementations§
Source§impl FramebufferResource
impl FramebufferResource
Sourcepub fn new(
source_device_id: usize,
logical_name: String,
config: FramebufferConfig,
physical_addr: usize,
size: usize,
) -> Self
pub fn new( source_device_id: usize, logical_name: String, config: FramebufferConfig, physical_addr: usize, size: usize, ) -> Self
Create a new framebuffer resource