[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130807213325.GB5373@kroah.com>
Date: Wed, 7 Aug 2013 14:33:25 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Bob Smith <bsmith@...uxtoys.org>
Cc: Arnd Bergmann <arnd@...db.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 001/001] CHAR DRIVERS: a simple device to give daemons a
/sys-like interface
On Wed, Aug 07, 2013 at 02:04:52PM -0700, Bob Smith wrote:
> Greg Kroah-Hartman wrote:
> >> cat /dev/proxyctrl # what is the offset?
> >> echo 2 > /dev/proxyctrl # set offset to 2
> >
> >You have language bindings right there in bash for this api, what you
> >are saying is that you don't want to write new syscall bindings for new
> >languages, which is fine, don't do that, use the ones we already have
> >for the vast number of different IPC types.
>
> You are correct. There very much is a protocol in use. Just as
> there is for setting ip_forward in /proc. And from your previous
> comment, it doesn't have to be ASCII. It could be binary or XML.
You are mixing protocols and bindings and system calls up it seems.
They are not the same at all.
> >What is your specific requirements, I see you couch them in terms of
> >what you have created, but none in terms of actual requirements with no
> >specific implementation.
>
> You are correct. I have been giving them in terms of my goal. The
> title still captures it: "a simple device to give daemons a /sys-like
> interface".
Again, /sys and /proc is talking to the kernel, not userspace to
userspace, I still fail to understand how you will do that to create a
"userspace" driver.
> I am not a kernel programmer. I am an Electrical Engineer trying to
> control a robot. So I don't know what you mean by "actual requirements"
> or a "specific implementation". If you point me at a working example
> I'll be happy to try to provide these.
How can you control a robot with this code?
What do you want to do in order to control your robot? What are your
needs in accessing the hardware? What hardware are you wanting to
control? And why can't you just access that hardware through the normal
kernel apis we have today?
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists