Linux Kernel readlink equivalent

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Jan 29 14:24:53 EST 2015


On Thu, 29 Jan 2015 13:11:13 -0500, David Legault said:

> I'm working on some linux kernel driver stuff and I have a fake path called
> /dev/blah/whatever that points to /dev/block/real_device.

And *why* is kernel code trying to follow a symlink, anyhow?

(Hint:  there's probably (a) data you want at the other end of the symlink
and (b) a better kernel API for getting at that data, which is why you can't
find examples of following symlinks. ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150129/32e96d4a/attachment.bin 


More information about the Kernelnewbies mailing list