Re: Linux Kernel readlink equivalent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 30, 2015 at 11:02:01AM -0500, David Legault wrote:
> The path used is generic in that it never changes, but the pointed block device
> underneath changes based on the hardware/configuration in place. So the idea
> was to load a module passing the path as a module argument so I could access
> the underlying block device through the link without having to worry about the
> real block device path.

I don't understand at all.  What exactly are you trying to create here?

And don't use a module parameter for anything, you are limiting yourself
to only one "device" that way, as well as preventing any distro from
ever using your code.

What's wrong with just using the device mapper interface in the kernel
for whatever you are trying to do, instead of creating a new user api?

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux