About 1,470,000 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? …

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

    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 …

  3. 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 …

  4. 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 …

  5. c - How to use dentry_path_raw () - Stack Overflow

    Oct 21, 2015 · 4 path = dentry_path_raw(dentry, buffer, buflen); builds path from the end buffer to the beginning. That is, buffer[buflen - 1] is set to '\0' and resulted path pointer will be greater or …

  6. 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

  7. c - Get absolute path from dentry_path_raw - Stack Overflow

    Dec 5, 2022 · I try to get the target of symlink dentries in a kernel module, i.e. the dentry on which my dentry points. I use this approach: int print_dentry(struct dentry *d) { struct path p; char *buf...

  8. 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 …

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

    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. What is the difference between f_inode of the file object and …

    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 …