PRANAB NANDY

Software Engineer in Bengaluru

Hire me

#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/delay.h>

#define SHARED_IRQ 19
static int irq = SHARED_IRQ, my_dev_id, irq_counter = 0;
module_param(irq, int, S_IRUGO);

static irqreturn_t my_interrupt(int irq, void *dev_id)
{
pr_info("%s\n", __func__);
return IRQ_WAKE_THREAD;
}

static irqreturn_t my_threaded_interrupt(int irq, void *dev_id)
{
pr_info("%s\n", __func__);
return IRQ_NONE;
}

static int __init my_init(void)
{
int ret;
ret = (request_threaded_irq(irq,
my_interrupt, my_threaded_interrupt,
IRQF_SHARED, "my_interrupt", &my_dev_id));

if (ret != 0)
{

pr_info("Failed to reserve irq %d, ret:%d\n", irq, ret);
return -1;
}
pr_info("Successfully loading ISR handler\n");
return 0;
}

static void __exit my_exit(void)
{
synchronize_irq(irq);
free_irq(irq, &my_dev_id);
pr_info("Successfully unloading, irq_counter = %d\n", irq_counter);
}

MODULE_LICENSE("GPL");
module_init(my_init);
module_exit(my_exit);

Hi,

I am Pranab Nandy. Qualcomm Id - 186538

I have issue with my qualcomm PF passbook.
UAN - 101845587431
PF- APHYD00476720000026641

https://rmbconsulting.us/publications/a-c-test-the-0x10-best-questions-for-would-be-embedded-programmers/

What are some of the most asked embedded systems interview questions? : r/embedded

Cracking the Google Embedded Software Engineer Interview

  • Education
    • M.Tech(CSE) @NIT Karnataka, Surathkal