3

If the kernel or a kernel module has a path that has symbolic link components, is relative, or is both, what function does it use to turn ../bob into /home/bob or /etc/mtab into /proc/self/mount? How can I also get the absolute path of a file as it is on the filesytem it belongs to (i.e., turning /proc/kcore into /kcore)? I am assuming that the parameter cannot be a string but must be a struct like pathname.

Melab
  • 2,594
  • 7
  • 30
  • 51

1 Answers1

0

Looks like you're looking for getname. You can trace it back from the open syscall.

Petr Skocik
  • 58,047
  • 6
  • 95
  • 142