c - calculate elf file size from memory when programming in kernel mode? -


i trying program kernel module copy elf of process called module using ioctl buffer in module.

so far managed location of elf in memory using /proc/pid/exe need size of file in order copy kernel space.

i have access elf header of mentioned file figure way calculate size using information header.

since can't use functions stat there way calculate mentioned file size when programming in kernel space?

the unique part of question need calculate under constraints kernel programming impose such inability use system calls such stat


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -