ioctl

  1. H

    RPI4 spigen - achieving higher throughput - mcp3912

    Hello, OS: FreeBSD:13.2-Release Driver: spigen-rpi4 The issue: With 5MHz SPI clock the communication RPI<->mcp3912 is established smooth. After increasing the speed to 10MHz, data is very random/incorrect. The SPI devices supports SPI clock to 20MHz. Verification scenario is very short...
  2. W

    /dev/sysmouse - Inappropriate ioctl for device

    Hi everyone. This is my first post here, and here's my issue. I'm trying to read the mouse from the virtual console thru /dev/sysmouse. I can successfully open the mouse, but when I try to query the mouse through ioctl(), I get Inappropriate ioctl for device. I recently upgraded to 13.2. The...
  3. A

    Solved I2C Device in FreeBSD (using Apollo Lake)

    Hello, I bought an RGB LED which I can connect using i2c on my device running FreeBSD 13.1 with CPU Apollo Lake. https://www.distrelec.ch/en/led-driver-click-rgb-led-driver-module-5v-mikroelektronika-mikroe-2950/p/30163868 I'm trying to set the color according to the commands from the...
  4. ogogon

    Ioctl like TIOCMIWAIT, or something that replaces it...

    Colleagues, tell me, please, is there in FreeBSD an ioctl similar to TIOCMIWAIT in SystemV? How correctly, without a "stupid" poll in a cycle, to understand that the modem signals of the com port have changed? I suppose that if TIOCMIWAIT, or some kind of its close analogue, is absent, then...
  5. K

    Add multicast group membership to an interface

    I'm using netmap and a tap interface to manipulate network traffic with a c-program. Everything works fine when the physical interface is in promiscuous mode, but I want to avoid that. The problem is that I'm not receiving multicast frames on the physical interface because the programs...
  6. C

    FreeBSD IFF_RUNNING??

    Hello Everyone: I am trying to use HAST with UCARP to archive storage/service level HA. If I stop UCARP service or shutdown any node,the primary/MASTER and secondary/BACKUP could switch over correctly. However,if I disconnect the Ethernet,the kernel detect link down,but the UCARP MASTER...
  7. andrian

    kernel: WARNING (zmc): ioctl sign-extension ioctl

    Hello people. I have the problem. I set up zoneminder and he very fine works. I use two usb web-camers over webcamd. My problem is that: after run zoneminder in the /var/log/messages writes intensely many strings. Aug 25 02:00:00 freebsd kernel: WARNING pid 52962 (zmc): ioctl sign-extension...
  8. A

    Writing a FreeBSD kernel module that handles arbitrary interrupt and output to device

    I would like to write a FreeBSD kernel module that could accept some arbitrary interrupts and upon receiving these interrupt, output some data to an arbitrary device. Currently, I'm facing several issues: How would I acquire interrupts through a specific IRQ? On Linux there is the...
  9. fnoyanisi

    Solved Wifi API

    Hi there, I am looking for a C API that would let me interact with my wireless NIC (such as listing available SSIDs etc...)? Well, a bit of googling revealed there is no API high level APIs in FreeBSD. I had a quick look at some of the code in /usr/src/sys/net80211, but I really would...
  10. B

    Solved Hard Drive Serial Number

    How can I grab the hard drive serial number in C on a machine running FreeBSD? The hard drive in question is an mSATA SSD. Specifically the TS256GMSA370. In my searching I found the following on this forum: 9548 I receive the error 'Inappropriate ioctl for device' when running the following...
Back
Top