Re: Replacement for C-function ioctl?



ZB wrote:
Dnia 05.05.2008 Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx> napisał/a:


But I mean all the time just ioctl - not the drivers. Of course, ioctl-call
will be somewhat different for FreeBSD, than for Linux. Its parameters, to
say it more precisely.

The interface used is "Video for Linux Version 2" aka V4L2.
http://en.wikipedia.org/wiki/Video4Linux
Afaik there is no port of this framework to any other OS.


...but I mean all the time just ioctl - not the drivers, neither the
interface.

The only difference is, that instead of call like:

ioctl(radiodev, VIDIOC_G_AUDOUT, &audio);

...one should use:

ioctl(radiodev, RADIO_GETMODE, &audio);

...when writing application for FreeBSD.

Of course I'm aware, that appropriate headers should be readed before.
The interface used is "Video for Linux Version 2" aka V4L2.
http://en.wikipedia.org/wiki/Video4Linux
Afaik there is no port of this framework to any other OS.
.



Relevant Pages

  • partition/cd recognition problem hal GNOME 2.16 FreeBSD RELEASE 6.2
    ... FreeBSD elbereth.gateway.2wire.net 6.2-RELEASE FreeBSD ... 0xf0000000-0xf7ffffff,0xffa80000-0xffafffff irq 16 at ... fdc0: port ... perm devstat 0444 ...
    (freebsd-questions)
  • usb devices dont "wake up"
    ... Copyright 1992-2008 The FreeBSD Project. ... <ACPI PCI bus> on pcib0 ... port ... soft updates support ...
    (freebsd-questions)
  • Is FreeBSD ready for desktop (Mozilla Flash)
    ... monitor,, somehow the install fails to detect ... "Macromedia Flash plugin is not available for FreeBSD. ... I quote again "Install the www/linuxpluginwrapper port. ... servers, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Disappointing speed with ZFS
    ... This way the drives are utilized much more, and same goes for the CPU. ... Copyright 1992-2008 The FreeBSD Project. ... acpi0: on motherboard ... port 0x6000-0x60ff mem 0xe8000000-0xefffffff,0xe0400000-0xe040ffff irq 16 at device 0.0 on pci15 ...
    (freebsd-current)
  • ad0: FAILURE - READ_DMA
    ... FreeBSD complains about DMA problems. ... pci0: ... irq 16 at ... port 0xb800-0xb8ff mem ...
    (freebsd-questions)