About 50 results
Open links in new tab
  1. caching - what are pagecache, dentries, inodes? - Stack Overflow

    Apr 26, 2015 · I am trying to understand what exactly are pagecache, dentries and inodes. What exactly are they? Do freeing them up also remove the useful memcached and/or redis cache? -- Why i am …

  2. inode and dentry relation confusion in VFS(virtual file system), where ...

    There are many explanations and book sections regarding Linux's Virtual File System including here in SOF. But I'm still a bit confused regarding the relation between struct dentry and struct inode...

  3. How to find a dentry from an inode/pathname? - Stack Overflow

    Apr 5, 2017 · 1 I am working on a module to read a files xattributes on open. I have hooked the sys_open and due to this I need to get the dentry of the file without opening the file. In brief I have …

  4. Linux Kernel dentry and inode - Stack Overflow

    Jan 7, 2011 · Is it possible to construct absolute path from the given dentry and inode? Thanks all

  5. c - How can I safely build the full path of a struct dentry * in an ...

    May 21, 2025 · I'm writing a Linux Security Module (LSM) eBPF program using the hook lsm.s/inode_rename, and I want to capture the full path of the renamed file or directory. I'm using CO …

  6. what does the function dentry_path_raw do - Stack Overflow

    Jan 4, 2013 · 0 char *dentry_path_raw(struct dentry *dentry, char *buf, int buflen) The above function returns full pathname from root of the file system into the buffer.Each field is explained as below. …

  7. In Linux, how can I get the filename from the "struct file" structure ...

    Jul 26, 2013 · Just not in a plain-text form, but parsed into objects that are more useful for kernel operation, namely a chain of dentry structures, and the vfsmount structure pointing to the root of the …

  8. What is the difference between f_inode of the file object and d_inode ...

    Oct 13, 2023 · 1 I understand that when a file is opened, its inode is brought into memory. I want to know whether the f_inode in the file object and the d_inode in the dentry object both point to the …

  9. linux kernel - How to obtain a pathname or dentry or struct file from a ...

    5 I need to know how to obtain a pathname or dentry or struct file from a given inode. I was using file_open to obtain struct file from a pathname but but always gave kernel panic.

  10. How to get full pathname from struct dentry in Linux kernel

    Jun 20, 2013 · I'm writing my own kernel module which captures vfs_mkdir(struct inode *, struct dentry *, int) kernel function invocation and tries to log the on-disk pathname where this invocation occurs.