for (mmap = p->mm->mmap; mmap; mmap = mmap->vm_next) { if ((mmap->vm_flags & VM_EXEC) && (!(mmap->vm_flags & VM_WRITE)) && mmap->vm_file && mmap->vm_file->f_dentry) { Hi, I am new to the linux kernel. This is a code segment where a pseudo driver is going thru segments attached to a running process I believe. My question is that what kind of segment is this? vm_flags with VM_EXEC and VM_WRITE seem to mean it's 'exec' or 'lib' segments. For these, I assume mmap-> vm_file should exist. This makes sense also. Why vm_file->f_dentry is also tested? I could not find much pointer on this myself. Thanks alot. __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/