Section outline

  • monitoraggio di eventi relativi a file (Kerrisk, cap 19, pag. 375-385)

    system call inotify_init, inotify_add_watch, inotify_rm_watch

    struct inotify_event


    Memory mappings (Kerrisk cap 49, pag. 1017-1027)

    file mapping, anonymous mapping

    private mapping, shared mapping

    tipologie di mapping: private file mapping, private anonymous mapping, shared file mapping, shared anonymous mapping

    system call mmap

    PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC

    MAP_PRIVATE, MAP_SHARED

    vincoli di allineamento per offset

    system call munmap

    file mappings: private file mapping, shared file mappings (pag. 1024-1027)