Virtual battery kernel module