Lines Matching refs:ctl_reg
4265 struct kern_ctl_reg ctl_reg; in flow_divert_kctl_init() local
4268 memset(&ctl_reg, 0, sizeof(ctl_reg)); in flow_divert_kctl_init()
4270 strlcpy(ctl_reg.ctl_name, FLOW_DIVERT_CONTROL_NAME, sizeof(ctl_reg.ctl_name)); in flow_divert_kctl_init()
4271 ctl_reg.ctl_name[sizeof(ctl_reg.ctl_name) - 1] = '\0'; in flow_divert_kctl_init()
4272 ctl_reg.ctl_flags = CTL_FLAG_PRIVILEGED | CTL_FLAG_REG_EXTENDED; in flow_divert_kctl_init()
4273 ctl_reg.ctl_sendsize = FD_CTL_SENDBUFF_SIZE; in flow_divert_kctl_init()
4275 ctl_reg.ctl_connect = flow_divert_kctl_connect; in flow_divert_kctl_init()
4276 ctl_reg.ctl_disconnect = flow_divert_kctl_disconnect; in flow_divert_kctl_init()
4277 ctl_reg.ctl_send = flow_divert_kctl_send; in flow_divert_kctl_init()
4278 ctl_reg.ctl_rcvd = flow_divert_kctl_rcvd; in flow_divert_kctl_init()
4280 result = ctl_register(&ctl_reg, &g_flow_divert_kctl_ref); in flow_divert_kctl_init()