Re: [PATCH 2/2] init, mount: export the name_to_dev_t symbol

From: Christoph Hellwig
Date: Tue May 25 2010 - 11:55:40 EST


On Tue, May 25, 2010 at 10:46:51AM -0500, Will Drewry wrote:
> This change only adds EXPORT_SYMBOL() for name_to_dev_t.
>
> name_to_dev_t is in use outside of init/ but is not 'officially'
> exported. It provides behavior that is useful for any code that may be
> need to lookup a block device by major:minor or registered kernel name,
> especially before there is a root filesystem.
>
> Hopefully, this is the appropriate use of EXPORT_SYMBOL(). This
> specific function seems to be a stable interface and is available
> in include/linux/mount.h.

NACK. It's really a hack for the boot code, there's no offical name to
dev_t mapping.

What are you trying to use it for?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/