- pipe 構造体
- struct file interfaceを実装している
# 内容
- 2020/01/14現在
|
|
# UML
@startuml interface File { ..Data.. +union Data* file +union Data* impl +int ref +char readable +char writable +unsigned int off +struct stat* st +char* addr +int n ..CodeGear.. __code stat() __code read() __code write() __code close() }
File <|– Pipe
class Pipe { +struct spinlock lock +char data[PIPESIZE]; +uint nread; +uint nwrite; +int readopen; +int writeopen; }
@enduml