python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Use GPIO as chip select for SPI ACPI overlay
I want to use a GPIO pin as a new chip select for SPI on an Up Squared board. The Up squared uses an Intel Pentium N4200, so it's a x86 machine. I have managed to this on a Raspberry Pi by using Devic...
afvmil
Votes: 0
Answers: 1
How to find my irq number from hwirq number in linux kernel driver module? (finding matching irq_desc)
I'm doing an linux driver and application test on a qemu arm64 virtual machine.
My virtual machine is slightly modified version of arm 'virt' machine and it has our device model included.
When I do re...
Chan Kim
Votes: 0
Answers: 1
Getting "call to '__bad_copy_to' declared with attribute error: copy destination size is too small" after disabling optimization
This is part of a linux device driver.
uint32_t val = 0;
static long axpu_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
...
copy_from_user(&val,(int32_t *)arg, sizeof(val));
......
Chan Kim
Votes: 0
Answers: 0
error: too few arguments to function ‘blk_get_request’
In Block Device Drivers coding, I am trying to implement Disk on file code, I am getting error:
In function ‘mydisk_request’:
/home/lab/DD/main.c:223:20: error: too few arguments to function ‘blk_get_...
Surbhika Singh
Votes: 0
Answers: 2