mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-28 19:04:56 +01:00
Steve Markgraf
f68bb2fa77
lib: Add workaround for Linux usbfs mmap() bug
The Linux Kernel has a bug on ARM/ARM64 systems where the USB CMA memory is incorrectly mapped to userspace, breaking zerocopy. When the Kernel allocates the memory, it clears it with memset(). If the mapping worked correctly, we should have zeroed out buffers, if it doesn't, we get random Kernel memory. We now check for this, and fall back to buffers in userspace if that's the case. Signed-off-by: Steve Markgraf <steve@steve-m.de>
rtl-sdr turns your Realtek RTL2832 based DVB dongle into a SDR receiver ====================================================================== For more information see: https://osmocom.org/projects/rtl-sdr/wiki
Description
Languages
C
91.5%
CMake
5.2%
Shell
1.7%
M4
0.9%
Makefile
0.7%