Re: [PATCH 1/2] driver core: introduce devtmpfs_wait_for_dev()
From: Kay Sievers
Date: Wed Jun 10 2009 - 10:52:04 EST
On Wed, Jun 10, 2009 at 16:27, <tom.leiming@xxxxxxxxx> wrote:
> This patch introduces devtmpfs_wait_for_dev(), which is based on devtmpfs
> and can be used to remove polling for root device before mounting rootfs.
> + Â Â Â nodename = dev_path + 5;
I guess this is to strip "/dev/". Devtmpfs has no clue where it is
mounted, it is just a simple superblock.
I guess, the caller would better pass a relative path to it, to keep
all the implicit lookup magic with root=/dev/* in one place where the
commandline parsing and mounting happens? For the same reason
devtmpfs_mount() accepts a path instead of just assuming "/dev".
> + Â Â Â if (strncmp(dev_path, "/dev/", 5) != 0)
> + Â Â Â Â Â Â Â return -1;
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/