]> Git Repo - J-linux.git/blob - scripts/gdb/linux/vfs.py
scripts/gdb: create linux/vfs.py for VFS related GDB helpers
[J-linux.git] / scripts / gdb / linux / vfs.py
1 #
2 # gdb helper commands and functions for Linux kernel debugging
3 #
4 #  VFS tools
5 #
6 # Copyright (c) 2023 Glenn Washburn
7 # Copyright (c) 2016 Linaro Ltd
8 #
9 # Authors:
10 #  Glenn Washburn <[email protected]>
11 #  Kieran Bingham <[email protected]>
12 #
13 # This work is licensed under the terms of the GNU GPL version 2.
14 #
15
16
17 def dentry_name(d):
18     parent = d['d_parent']
19     if parent == d or parent == 0:
20         return ""
21     p = dentry_name(d['d_parent']) + "/"
22     return p + d['d_iname'].string()
This page took 0.029269 seconds and 4 git commands to generate.