haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Linux.Process.MemoryMap

Description

Parser for proc*/maps

Synopsis

Documentation

data MemoryMapEntry Source #

Memory map entry

Constructors

MemoryMapEntry 

Fields

data MappingType Source #

Type of memory mapping

Constructors

AnonymousMapping

Anonymous mapping

NamedMapping Text

Mapping with a name | File mapping

FileMapping 

Fields

data Perm Source #

Memory permission

Constructors

PermRead

Read allowed

PermWrite

Write allowed

PermExec

Execute allowed

Instances

data Sharing Source #

Memory sharing

Constructors

Shared

Shared

Private

Private (copy-on-write)

Instances

readMemoryMap :: FilePath -> IO [MemoryMapEntry] Source #

Read proc[pid]/maps files

parseMemoryMap :: Buffer -> [MemoryMapEntry] Source #

Parse a memory map in a buffer

memoryMapParser :: Parser [MemoryMapEntry] Source #

Parse proc[pid]/maps files

memoryMapToBufferList :: MemoryMapEntry -> IO BufferList Source #

Convert a memory-map entry into a BufferList

memoryMapToBuffer :: MemoryMapEntry -> IO Buffer Source #

Convert a memory-map entry into a Buffer

Warning: The buffer directly maps the entry (i.e. there is no copy of the data). Hence the referential transparency can be broken if the entry is written into