mmap on /proc/pid/mem

前端 未结 1 851
感动是毒
感动是毒 2020-12-06 10:17

Has anybody succeeded in mmap\'ing a /proc/pid/mem file with Linux kernel 2.6? I am getting an ENODEV (No such device) error. My call looks like this:

char         


        
相关标签:
1条回答
  • 2020-12-06 11:08

    See proc_mem_operations in /usr/src/linux/fs/proc/base.c: /proc/.../mem does not support mmap.

    0 讨论(0)
提交回复
热议问题