mdev: add code notes

Signed-off-by: Micky Ching <mickyching@gmail.com>