Lines Matching refs:ctl_reg
4435 struct kern_ctl_reg ctl_reg; in flow_divert_kctl_init() local
4438 memset(&ctl_reg, 0, sizeof(ctl_reg)); in flow_divert_kctl_init()
4440 strlcpy(ctl_reg.ctl_name, FLOW_DIVERT_CONTROL_NAME, sizeof(ctl_reg.ctl_name)); in flow_divert_kctl_init()
4441 ctl_reg.ctl_name[sizeof(ctl_reg.ctl_name) - 1] = '\0'; in flow_divert_kctl_init()
4442 ctl_reg.ctl_flags = CTL_FLAG_PRIVILEGED | CTL_FLAG_REG_EXTENDED; in flow_divert_kctl_init()
4443 ctl_reg.ctl_sendsize = FD_CTL_SENDBUFF_SIZE; in flow_divert_kctl_init()
4445 ctl_reg.ctl_connect = flow_divert_kctl_connect; in flow_divert_kctl_init()
4446 ctl_reg.ctl_disconnect = flow_divert_kctl_disconnect; in flow_divert_kctl_init()
4447 ctl_reg.ctl_send = flow_divert_kctl_send; in flow_divert_kctl_init()
4448 ctl_reg.ctl_rcvd = flow_divert_kctl_rcvd; in flow_divert_kctl_init()
4450 result = ctl_register(&ctl_reg, &g_flow_divert_kctl_ref); in flow_divert_kctl_init()