0

I'm trying to get a path to the mountpoint of a specific filesystem in a kernel module. In a user-space tool, I could read /proc/mount to do this, but from what I've tried and read, that's not possible in kernel space.

How can I achieve this in a kernel module?

jacobsowles
  • 2,863
  • 6
  • 35
  • 54

1 Answers1

0

You are able to get this from /dev/ directory also you just have to use grep and sed at that place for find correct mounting point.

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
ravi bhuva
  • 302
  • 1
  • 8