Yes, I did state it specifically. I need to get several arrays of binary data from an app (userspace) into kernelspace. I don't really care how it happens. It's not tied to any particular piece of hardware. The data is going to be transfered to the Modem processor (since Android is running on the App processor) and used there, but I already have that code figured out.
That is the whole of the problem. Then as background, I said that I already know how to copy a device driver, as I used an LED driver as a template and used that to interface with the app, but that it's limited to one byte with no context. I could make that system work if I really had to, but there has to be a correct way to do it, and I don't have an example of what I expect it to be, which is either using an ioctl somehow to pass the whole set of data at once, or having the driver have multiple attributes so that I can write the data to it in context. So, currently, I can use the following code from my app and it works for a single byte: FileOutputStream fos = new FileOutputStream("/sys/class/ leds/myled/brightness"); outStream = new PrintWriter(new OutputStreamWriter(fos)); outStream.println("1"); Jonathan On Jan 25, 5:11 pm, Greg KH <gre...@gmail.com> wrote: > On Wed, Jan 26, 2011 at 8:49 AM, jon.schell <jon.sch...@kyocera.com> wrote: > > I have read it, mostly. It doesn't answer my specific question, or to > > put it another way, it answers too completely and genericly to be > > useful. > > Well you asked a pretty generic question to answer usefully :) > > > I just need a specific example in the Android code base to > > use as a template. I understand the big concepts from the book > > already. > > There are thousands of examples in the Android code base (really the Linux > kernel code base) that you could use. > > But, you have not stated exactly what you want to do and what you have tried > to do that failed. > > Let's start over then with some more general questions that you can use to > let us know what you are trying to accomplish here: > > What specific type of device driver are you trying to write? > What type of hardware is it for? > What type of interface to userspace do you think you might want for this? > Do you have a pointer to the source code that you have written so far that > fails to create the needed userspace interface you are desiring? > > thanks, > > greg k-h -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel