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 -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -