Lines Matching refs:genl

517         _cleanup_(sd_netlink_unrefp) sd_netlink *genl = NULL;  in test_array()
522 assert_se(sd_genl_socket_open(&genl) >= 0); in test_array()
523 assert_se(sd_genl_message_new(genl, CTRL_GENL_NAME, CTRL_CMD_GETFAMILY, &m) >= 0); in test_array()
539 assert_se(sd_netlink_message_rewind(m, genl) >= 0); in test_array()
591 static int genl_ctrl_match_callback(sd_netlink *genl, sd_netlink_message *m, void *userdata) { in genl_ctrl_match_callback() argument
596 assert_se(genl); in genl_ctrl_match_callback()
599 assert_se(sd_genl_message_get_family_name(genl, m, &name) >= 0); in genl_ctrl_match_callback()
602 assert_se(sd_genl_message_get_command(genl, m, &cmd) >= 0); in genl_ctrl_match_callback()
628 _cleanup_(sd_netlink_unrefp) sd_netlink *genl = NULL; in test_genl()
636 assert_se(sd_genl_socket_open(&genl) >= 0); in test_genl()
638 assert_se(sd_netlink_attach_event(genl, event, 0) >= 0); in test_genl()
640 assert_se(sd_genl_message_new(genl, CTRL_GENL_NAME, CTRL_CMD_GETFAMILY, &m) >= 0); in test_genl()
641 assert_se(sd_genl_message_get_family_name(genl, m, &name) >= 0); in test_genl()
643 assert_se(sd_genl_message_get_command(genl, m, &cmd) >= 0); in test_genl()
646 …assert_se(sd_genl_add_match(genl, NULL, CTRL_GENL_NAME, "notify", 0, genl_ctrl_match_callback, NUL… in test_genl()
649 assert_se(sd_genl_message_new(genl, "should-not-exist", CTRL_CMD_GETFAMILY, &m) < 0); in test_genl()
650 … assert_se(sd_genl_message_new(genl, "should-not-exist", CTRL_CMD_GETFAMILY, &m) == -EOPNOTSUPP); in test_genl()
653 (void) sd_genl_message_new(genl, FOU_GENL_NAME, 0, &m); in test_genl()
655 (void) sd_genl_message_new(genl, L2TP_GENL_NAME, 0, &m); in test_genl()
657 (void) sd_genl_message_new(genl, MACSEC_GENL_NAME, 0, &m); in test_genl()
659 (void) sd_genl_message_new(genl, NL80211_GENL_NAME, 0, &m); in test_genl()