Re: [PATCH 1/4] drivers/misc: add rawio framework driver

From: Bin Gao
Date: Tue Oct 22 2013 - 14:35:50 EST


On Tue, Oct 22, 2013 at 06:45:38AM +0100, Greg Kroah-Hartman wrote:
>
> Oh, one more technical thing, you totally fail to document the
> user/kernel api you have just created.

Yes, this is required to be done. Will fix it.

> You are parsing userspace data in ways that I really don't understand at all...

I don't know which specific codes you were talking about.
Overall the driver needs to parse each argument from the user command.
For example: "r iomem 0xff00c020 40", the driver needs parsing out:
r - read (and default width 4 bytes)
iomem - I/O memory
0xff00c020 - the start address to read
40 - length to read

--
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/