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
.
Asked
Active
Viewed 594 times
3

Melab
- 2,594
- 7
- 30
- 51
1 Answers
0

Petr Skocik
- 58,047
- 6
- 95
- 142
-
Will it turn `../bob` into `/home/bob` and `/etc/mtab` into `/proc/self/mounts`? – Melab Oct 13 '16 at 16:28
-
`insmod` says it is an unknown symbol. – Melab Nov 04 '16 at 00:14