v4l device in userspace



Hello, I'm trying to implement a v4l device driver
for symbian based smart phones. In theory
it is very simple:

I've a little program running in the phone, capturing
images from the camera and sending it to the
linux box via bluetooth.

In the linux box side, I've a deamon capturing this
images (via a bluetooth SP channel), and....
I've to pass the images to a fake v4l device
driver that actually gets the images form userspace.

Basically I've to pass by the kernel just for
the interface, and not to do real kernel-side work
(like to access to the some kind of hardware).

So I've some questions ( thanks in advance
for any reply).

1) What's the best way to pass relatively
high-band data between the v4l fake driver
and userspace? A char device will do the
work? ioctl?

2) What about some way to handle ioctl
directly from userspace? Given this support
I may implement the whole code in userspace.
And I guess there are a lot of other real world
problems that can be handled in userspace
given the ability to handle ioctl from there.

If you think 2) is reasonable I may actually
implement some simple form of generic
char driver that just allows userspace
programs to handle read/write/ioctl
opreations, and then use this to fix
my real issue.

Thank you very much for the help,
and sorry if there is something conceptually
wrong in my questions.

Regards,
Salvatore

P.S. please take me in CC as I'm not subscribed
to the linux kernel mailing list.

--
Salvatore 'antirez' Sanfilippo
We're programmers. Programmers are, in their hearts, architects -- Joel Spolsky
http://www.invece.org
-
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/



Relevant Pages

  • Re: v4l device in userspace
    ... I've a little program running in the phone, capturing ... images, ... driver that actually gets the images form userspace. ...
    (Linux-Kernel)
  • Re: [PHP] Re: how to display images stored in DB**
    ... for storing images is "bad" practice. ... "Bad" practice or "good" practice depends upon the needs and one's perspective of the situation. ... If you were to talk to the average computer user; or to the average investor who invests in technologies; or to the businessman who is paying the bills for programmers to build the product while trying to make money at the same time; they all might have different opinions as to the quality and state of software. ... If you assume that you have one database supply all the images to all ...
    (php.general)
  • Re: Outlook Express question
    ... > This message is for Robert Aldwinckle as well. ... > I've tried using OllyDbg to step through it. ... or the programmers took a fancy for the ... images that you noticed. ...
    (microsoft.public.windowsxp.general)
  • Re: Outlook Express question
    ... > This message is for Robert Aldwinckle as well. ... > I've tried using OllyDbg to step through it. ... or the programmers took a fancy for the ... images that you noticed. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: [SLE] screen blocks installation of 9.1
    ... On Saturday 02 July 2005 02:50, Sunny wrote: ... Then the program displays text and images correctly on a full screen. ... These young SuSE programmers ought to take some advice ...
    (SuSE)

Loading