Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
83 views

I am trying to retrieve the SMART Data of an external SATA SSD wchar_t path[64]; swprintf_s(path, _countof(path), L"\\\\.\\PhysicalDrive%d", 0); HANDLE hDrive = CreateFile(path, GENERIC_READ ...
0 votes
0 answers
90 views

I'm making an assembly program that is supposed to get the mac address of the specified interface, however, when I try to assemble it, I get this error. gethwaddress.s:12: warning: multi-line macro `...
0 votes
1 answer
38 views

The XFS filesystem has (or used to have) a IOCTL named XFS_IOC_RESVSP64 for reserving space: You called it with a given file descriptor, and the XFS driver reserved an amount of space use by for your ...
0 votes
0 answers
145 views

I am trying to write a c program (on linux), that plays a sine wave from the speakers, using the alsa kernel interface: #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <sound/asound.h> #...
2 votes
0 answers
110 views

I am trying to write a c program (on linux), that plays a sine wave from the speakers, using the alsa kernel interface (minimal reproducable example). My config looks like this: set_param(params,...
2 votes
1 answer
92 views

I'm trying to get the block size of a cdrom via ioctl. A working minimal example in C: #include <fcntl.h> #include <linux/fs.h> #include <stdio.h> #include <unistd.h> #include &...
2 votes
1 answer
89 views

I’m using the Synexens CS20 dual-lens ToF LiDAR sensor with the SynexensSDK (v4.2.1.0, ARMv8) on a Raspberry Pi 4 Model B running Ubuntu 24.04 (64-bit). The device works fine once after a cold boot, ...
2 votes
1 answer
99 views

I was running a service that assigned a Unique Local Address (ULA) IPv6 to my en0 interface. Initially, I was able to add multiple IPv6 addresses without any issues. However, after adding 18 IPv6 ...
2 votes
1 answer
338 views

I am trying to send raw mmc commands to SD card using Linux MMC subsystem mmc-utils and ioctl and running into Connection timed out (errno: 110). The SD card is micro-sd card that is used in raspberry ...
0 votes
0 answers
54 views

I am trying to get mixer events from alsa (v1.0.29) in C, but I cannot poll for them, because my card uses ioctl to change values. I am checking for events using amixer sevents, which correctly gets ...
0 votes
1 answer
112 views

Is there a way to map a regular file/directory to a block device file? Basically I want to get the block file info being output by df file/directory command df /tmp/ ...
Harry's user avatar
  • 4,232
0 votes
1 answer
125 views

In the below code I'm trying to get the physical block size of a device via file/directory path residing in the file system mount point of that device. I am supposed to get the same info as the ...
Harry's user avatar
  • 4,232
1 vote
1 answer
107 views

#include <fcntl.h> #include <net/if.h> #include <linux/if_tun.h> #include <sys/ioctl.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include &...
1 vote
0 answers
38 views

Good afternoon I have a kmdf driver that can read and write to a file. Through a custom application I can send IOCTL requests. If I send a request from one process to write, from another process to ...
1 vote
0 answers
115 views

I'm trying to update an old kernel driver to run under Debian Bookworm, but I've run into trouble. Because this driver wraps around a different serial driver (e.g. /dev/ttyS4), it uses filp_open() on ...

15 30 50 per page
1
2 3 4 5
...
48

AltStyle によって変換されたページ (->オリジナル) /