Hey There, Seth here. Um, is writing a kernel module available to be used once it is instantiated and if so, if the kernel module is instantiated, can the module be used to control specific peripherals on the BBB?
For instance and I am making a shot in the dark here…
Write kernel module
Install kernel module after compilation
Use so said module
Does that sound correct?
Seth
P.S. I have this book and the specifics are not so much of a heading but a vague passthrough. I am trying to find out exactly what it would take to get a kernel module registered on the BBB for use later after a boot.
Oh and would it matter if I used 5.10.x and have you noticed the dynamic kernel module loading being different from, say kernel 5.10.x to 6.11.x, separate kernels?
Seth
P.S. I am wrapping my head around this articulation slowly to promote findings better.
Update on module building here…
Loud is the fashion! Seriously…I am getting closer to a remote. Yea boy!
if(gpio_request(GPIO_OUT, "gpio_dev"))
{
printk(KERN_INFO "gpio_dev: %s unable to get GPIO_OUT\n", __func__);
ret = -EBUSY;
goto Done;
}
In that code snippet, would you say that __func__ is relative or needs to be placed in this context?