implement __rt_ffs in kernel service library