gem5  v20.1.0.0
Classes | Typedefs | Functions | Variables
fs9p.hh File Reference
#include <map>
#include <memory>
#include <string>
#include "base/pollevent.hh"
#include "dev/virtio/base.hh"

Go to the source code of this file.

Classes

struct  P9MsgHeader
 
class  VirtIO9PBase
 This class implements a VirtIO transport layer for the 9p network file system. More...
 
struct  VirtIO9PBase::Config
 VirtIO 9p configuration structure. More...
 
class  VirtIO9PBase::FSQueue
 Virtqueue for 9p requests. More...
 
class  VirtIO9PProxy
 VirtIO 9p proxy base class. More...
 
class  VirtIO9PDiod
 VirtIO 9p proxy that communicates with the diod 9p server using pipes. More...
 
class  VirtIO9PDiod::DiodDataEvent
 
class  VirtIO9PSocket
 VirtIO 9p proxy that communicates with a 9p server over tcp sockets. More...
 
class  VirtIO9PSocket::SocketDataEvent
 

Typedefs

typedef uint8_t P9MsgType
 
typedef uint16_t P9Tag
 

Functions

template<typename T >
p9toh (T v)
 Convert p9 byte order (LE) to host byte order. More...
 
template<typename T >
htop9 (T v)
 Convert host byte order to p9 byte order (LE) More...
 
template<>
P9MsgHeader p9toh (P9MsgHeader v)
 
template<>
P9MsgHeader htop9 (P9MsgHeader v)
 

Variables

struct P9MsgHeader M5_ATTR_PACKED
 

Typedef Documentation

◆ P9MsgType

typedef uint8_t P9MsgType

Definition at line 48 of file fs9p.hh.

◆ P9Tag

typedef uint16_t P9Tag

Definition at line 51 of file fs9p.hh.

Function Documentation

◆ htop9() [1/2]

template<>
P9MsgHeader htop9 ( P9MsgHeader  v)
inline

Definition at line 80 of file fs9p.hh.

References htop9(), and ArmISA::v.

◆ htop9() [2/2]

template<typename T >
T htop9 ( v)
inline

Convert host byte order to p9 byte order (LE)

Definition at line 68 of file fs9p.hh.

References htole(), and ArmISA::v.

Referenced by htop9(), VirtIO9PProxy::recvTMsg(), and VirtIO9PBase::sendRMsg().

◆ p9toh() [1/2]

template<>
P9MsgHeader p9toh ( P9MsgHeader  v)
inline

Definition at line 71 of file fs9p.hh.

References p9toh(), and ArmISA::v.

◆ p9toh() [2/2]

template<typename T >
T p9toh ( v)
inline

Convert p9 byte order (LE) to host byte order.

Definition at line 64 of file fs9p.hh.

References letoh(), and ArmISA::v.

Referenced by VirtIO9PBase::FSQueue::onNotifyDescriptor(), p9toh(), and VirtIO9PProxy::serverDataReady().

Variable Documentation

◆ M5_ATTR_PACKED

struct P9MsgHeader M5_ATTR_PACKED

Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17