I'm writing a driver that allocates kernel memory with kmalloc.
Sometimes I get this error in my logs:
kernel: Couldn't get a free page.....
I found that it comes from kmalloc when it fails.......
What causes this problem *exactly* and how can I avoid it?
What's the appropriate reaction for a driver using kmalloc when it fails?
Give up or wait and retry?
Thanks in advance,