Writing Device Drivers

Avoiding Unnecessary Locks

To avoid unnecessary locks, note the following:


Note -

Kernel-thread stacks are small (currently 8 Kbytes), so do not allocate large automatic variables, and avoid deep recursion.