Updated to work with Linux kernel >= 3.6.10 by Zbigniew Luszpinski 2013-05-04 <zbiggy(a)o2,pl>