Skip to content

Support anonymous named and anonymous shared shared mappings in /proc/PID/maps #318

@gabrielesvelto

Description

@gabrielesvelto

Linux allows naming anonymous mappings, both shared and non-shared. Named anonymous mappings appear as [anon:<name>] entries while anonymous shared named mappings appear as [anon_shmem:<name>] lines (see the kernel documentation). Since in both cases the name is optional I propose to extend the MmapPath::Anonymous with an optional string name, so MmapPath::Anonymous(Option<String>) and introduced a similar entry for anonymous shared mappings (say MmapPath::AnonymousShared(Option<String>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions