pub unsafe fn map(config: LinearPixelConfig, paddr: usize)
        -> LinearFramebuffer {

        kernel_pageset().map_pages_with_type(
            config.buffer as usize,
            (paddr..).step_by(PAGE_SIZE).take(config.size_in_pages()),
            PageType::default().writable()).unwrap();

        LinearFramebuffer::new(config)
    }
/// Map the framebuffer to the pointer specified in the config and then
/// create it.
Map the framebuffer to the pointer specified in the config and then
create it.
Map the framebuffer to the pointer specified in the config and then create it .
pub unsafe fn map(config: LinearPixelConfig, paddr: usize)
        -> LinearFramebuffer {
        kernel_pageset().map_pages_with_type(
            config.buffer as usize,
            (paddr..).step_by(PAGE_SIZE).take(config.size_in_pages()),
            PageType::default().writable()).unwrap();
        LinearFramebuffer::new(config)
    }
pub unsafe fn map ( config : LinearPixelConfig , paddr : usize ) -> LinearFramebuffer { kernel_pageset ( ) . map_pages_with_type ( config . buffer as usize , ( paddr .. ) . step_by ( PAGE_SIZE ) . take ( config . size_in_pages ( ) ) , PageType :: default ( ) . writable ( ) ) . unwrap ( ) ; LinearFramebuffer :: new ( config ) }
Map the framebuffer to the pointer specified in the config and then
create it.
Map the framebuffer to the pointer specified in the config and then create it .
config
LinearPixelConfig
paddr
usize