about summary refs log blame commit diff stats
path: root/tools/iso/kernel.soso/device.h
blob: ac85634b6a066bd076d5738f639d1cb6c81825f2 (plain) (tree)
1
2
3
4
5
6
7





                   
                       















                                      
#ifndef DEVICE_H
#define DEVICE_H

#include "common.h"
#include "fs.h"

typedef struct Device {
    char name[16];
    FileType deviceType;
    ReadWriteBlockFunction readBlock;
    ReadWriteBlockFunction writeBlock;
    ReadWriteFunction read;
    ReadWriteFunction write;
    OpenFunction open;
    CloseFunction close;
    IoctlFunction ioctl;
    FtruncateFunction ftruncate;
    MmapFunction mmap;
    MunmapFunction munmap;
    void * privateData;
} Device;

#endif // DEVICE_H
ss="p">.com/fsnotify/fsnotify v1.4.7 github.com/getwtxt/registry v0.0.0-20190527072649-b45333a37e5e github.com/gorilla/handlers v1.4.0 github.com/gorilla/mux v1.7.1 github.com/spf13/pflag v1.0.3 github.com/spf13/viper v1.3.2 github.com/syndtr/goleveldb v1.0.0 )