fn mapping_for_library(libpath: &str) -> (usize, usize) {
    let mut libstart = 0;
    let mut libend = 0;
    walk_self_maps(&mut |start, end, _permissions, path| {
        if libpath == path {
            if libstart == 0 {
                libstart = start;
            }

            libend = end;
        }
        false
    });

    (libstart, libend)
}
/// Get the start and end address of the mapping containing a particular address
Get the start and end address of the mapping containing a particular address
Get the start and end address of the mapping containing a particular address
fn mapping_for_library(libpath: &str) -> (usize, usize) {
    let mut libstart = 0;
    let mut libend = 0;
    walk_self_maps(&mut |start, end, _permissions, path| {
        if libpath == path {
            if libstart == 0 {
                libstart = start;
            }
            libend = end;
        }
        false
    });
    (libstart, libend)
}
fn mapping_for_library ( libpath : & str ) -> ( usize , usize ) { let mut libstart = 0 ; let mut libend = 0 ; walk_self_maps ( & mut | start , end , _permissions , path | { if libpath == path { if libstart == 0 { libstart = start ; } libend = end ; } false } ) ; ( libstart , libend ) }
Get the start and end address of the mapping containing a particular address
Get the start and end address of the mapping containing a particular address
libpath
&str
libpath
&str