hmr_rm ioctl and test