Re: bktr(4) risk?



On Mon, Oct 09, 2006 at 04:26:50PM -0700, John-Mark Gurney wrote:
Jonathan Chen wrote this message on Mon, Oct 09, 2006 at 17:37 -0400:
The only reason I can think of to use this ioctl would be if you wanted the
image you're capturing to be directly dumped into video memory. This

This is very common... It allows the bktr driver to dump the frames
directly to the memory of your video card... This makes watching live
tv watchable...

Yes, how stupid of me to not think of people wanting to just watch a live
feed from their capture card...

doesn't seem too useful a task for a video capture card to be doing.
Perhaps we should put a test for write access in there or just eliminate
the ioctl altogether. It should be noted that the meteor driver had this
ioctl ifdef'ed out prior to its removal.

Hmmm... I think I'll go ahead and put in a compatibility ioctl based
on the way I did the zoran driver, and schedule the removal of the
ioctl..

Zoran driver? Can I have a pointer or a summary of what you did there so I
can do the same to meteor(4)?

-Jon
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Kernel mode to user mode
    ... where they make sense in the context of using IoCtls for data passing also. ... An app passes an IoCtl to a driver initiating a series of tests that will ...
    (microsoft.public.development.device.drivers)
  • [RFC] dev_acpi: device driver for userspace access to ACPI
    ... The basic concept of operation is that the ioctl operates on the ACPI ... The sample, proof-of-concept app, is called acpitree. ... You can find the driver and sample app here: ...
    (Linux-Kernel)
  • Re: Accessing Ndis miniport from user mode application
    ... sticking to WMI, you confine yourself to strictly defined model - there are ... driver can indicate. ... to you - as I told you already, you should go for IOCTL model. ... Accessing custom OIDS through WMI. ...
    (microsoft.public.development.device.drivers)
  • Re: Why is remote system information calling ioctl for my driver?
    ... Changing the key name doesn't keep the System Information ... don't think the ioctl probing was causing the System Information util to fail ... How does it decide that my driver is a serial port ... the SerialPortIndex registry key to decide if the driver should be probed ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Linux read (true i.e. burned in) MAC address
    ... "The reading procedure is different for different vendors...". ... differences among vendors are taken care of by the driver. ... ifconfig, you do a SIOCGIFHWADDR ioctl, no matter who designed the NIC. ... need to care about the card itself or its manufacturer. ...
    (comp.os.linux.networking)