github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/hafnium.txt (about)

     1  # Copyright 2019 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  # Hafnium is a hypervisor.
     5  # See https://hafnium.googlesource.com/hafnium and docs/hafnium/README.md
     6  
     7  include <uapi/linux/socket.h>
     8  include <linux/socket.h>
     9  include <linux/net.h>
    10  
    11  define AF_HF	AF_ECONET
    12  
    13  resource sock_hf[sock]
    14  
    15  socket$hf(domain const[AF_HF], type const[SOCK_DGRAM], proto const[0]) sock_hf
    16  connect$hf(fd sock_hf, addr ptr[in, sockaddr_hf], addrlen len[addr])
    17  sendmsg$hf(fd sock_hf, msg ptr[in, send_msghdr], f flags[send_flags])
    18  recvmsg$hf(fd sock_hf, msg ptr[inout, recv_msghdr], f flags[recv_flags])
    19  
    20  sockaddr_hf {
    21  	family	const[AF_HF, int16]
    22  	vm_id	proc[1, 2, int32]
    23  	port	int64
    24  }