c - Reconstructing "flags" argument to mmap call -


one of arguments mmap flags. extent possible reconstruct flags used information in /proc/self/maps?

see details on /proc/self/maps in this question.

some ideas (actually not full answer):

  • map_private , map_shared flags may determined permissions column
  • map_anonymous determined empty path
  • some flags (probably map_hugetlb, map_locked) may determined /proc/self/smaps
  • some flags map_fixed (probably map_32bit, map_uninitialized) not saved anywhere after mmap() returns
  • some flags (map_nonblock, map_noreserve, map_populate) stored somewhere, don't think they're accessible through /proc

hth


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -