converted linux_apihooks