Is it relate to that I have not exec any app program?I tried run the app and exit, the dmesg info is the same.
And What about this question?
And additional,I used GPIO PN.01 is because the topicbelow, Is the statement that only the pins which tagged with “wake” can be used for input interrupt gpio right?
Yes, only the pin with “wake” in the spreadsheet could be used to wake the device.
Is it relate to that I have not exec any app program?I tried run the app and exit, the dmesg info is the same.
I don’t know what does that mean any app program. You are writing a kernel driver. This thing got run when you insert the module… not related to any app program.
It is more like just a bug in your code.
Oh,the app program means a exec which open and read the data from /dev/input/event which created by the driver.when one or more of them run, the ref count of the driver will be changed… that’s what I was thinking.
Now I located that it is because I missed the IRQF_TRIGGER_RISING when calling request_irq().
It can be normal insmod and rmmod, but still report the message below when rmmod for the first time. no matter whether I add the flag “IRQF_SHARED” or not.
------------[ cut here ]------------
refcount_t: underflow; use-after-free
....
---[ end trace 476cfe54f147d4e6 ]---