- Timestamp:
- 07/11/2017 05:11:50 PM (7 years ago)
- Branches:
- master
- Children:
- 7af8be4
- Parents:
- 4aa78b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/io.h
r4aa78b2 r4a17aeb 11 11 #include "stdint.h" 12 12 13 struct devtabl; 14 struct channel; 15 16 typedef int16_t (*chclo)(io_arg arg); 17 typedef int16_t (*devop)(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp); 18 13 19 struct channel { /* channel table entry */ 14 20 … … 17 23 int8_t c_ioctl; /* ioctl routine index */ 18 24 int8_t c_seek; /* seek routine index */ 19 int16_t (*c_close)(); /* close function pointer */25 chclo c_close; /* close function pointer */ 20 26 io_arg c_arg; /* argument to channel driver */ 21 27 }; … … 27 33 int8_t d_ioctl; /* ioctl routine code */ 28 34 int8_t d_seek; /* seek routine code */ 29 int16_t (*d_open)();/* special open function */35 devop d_open; /* special open function */ 30 36 }; 31 37
Note:
See TracChangeset
for help on using the changeset viewer.