github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/socket_netlink_generic_smc.txt (about) 1 # Copyright 2020 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <linux/net.h> 5 include <uapi/linux/netlink.h> 6 include <uapi/linux/genetlink.h> 7 include <uapi/linux/smc.h> 8 9 resource genl_smc_family_id[int16] 10 type msghdr_nl_smc[CMD] msghdr_netlink[netlink_msg_t[genl_smc_family_id, genlmsghdr_t[CMD], smc_pnet_policy]] 11 12 syz_genetlink_get_family_id$smc(name ptr[in, string["SMC_PNETID"]], fd sock_nl_generic) genl_smc_family_id 13 14 sendmsg$SMC_PNETID_GET(fd sock_nl_generic, msg ptr[in, msghdr_nl_smc[SMC_PNETID_GET]], f flags[send_flags]) 15 sendmsg$SMC_PNETID_ADD(fd sock_nl_generic, msg ptr[in, msghdr_nl_smc[SMC_PNETID_ADD]], f flags[send_flags]) 16 sendmsg$SMC_PNETID_DEL(fd sock_nl_generic, msg ptr[in, msghdr_nl_smc[SMC_PNETID_DEL]], f flags[send_flags]) 17 sendmsg$SMC_PNETID_FLUSH(fd sock_nl_generic, msg ptr[in, msghdr_nl_smc[SMC_PNETID_FLUSH]], f flags[send_flags]) 18 19 smc_pnet_policy [ 20 SMC_PNETID_NAME nlattr[SMC_PNETID_NAME, string[smc_pnetid_name]] 21 SMC_PNETID_ETHNAME nlattr[SMC_PNETID_ETHNAME, devname] 22 SMC_PNETID_IBNAME nlattr[SMC_PNETID_IBNAME, string[smc_pnetid_ibname]] 23 SMC_PNETID_IBPORT nlattr[SMC_PNETID_IBPORT, int8[1:2]] 24 ] [varlen] 25 26 smc_pnetid_name = "syz0", "syz1", "syz2" 27 # TODO: unclear where do these come from? do we have any of these smcd/smcib things? can we add/create them? 28 smc_pnetid_ibname = "syz0", "syz1", "syz2"