|
|
1.1 ! root 1: /* ! 2: * This provides device_<call>_error_reply stubs that replace the ! 3: * stubs device_<call>_reply from <device/device_reply.defs>, ! 4: * to as to send properly typed reply messages. ! 5: */ ! 6: ! 7: subsystem ! 8: #if KERNEL_USER ! 9: KernelUser ! 10: #endif ! 11: device_error_reply 2900; ! 12: /* to match reply numbers for device.defs */ ! 13: ! 14: #include <mach/std_types.defs> ! 15: #include <device/device_types.defs> ! 16: ! 17: userprefix ds_; ! 18: ! 19: type reply_port_t = polymorphic|MACH_MSG_TYPE_PORT_SEND_ONCE ! 20: ctype: mach_port_t; ! 21: ! 22: #define ERROR_REPLY_ROUTINE(name) \ ! 23: simpleroutine name##_error_reply( \ ! 24: reply_port : reply_port_t; \ ! 25: in return_code : kern_return_t) ! 26: ! 27: ERROR_REPLY_ROUTINE (device_open); ! 28: skip; /* device_close */ ! 29: ERROR_REPLY_ROUTINE (device_write); ! 30: ERROR_REPLY_ROUTINE (device_write_inband); ! 31: ERROR_REPLY_ROUTINE (device_read); ! 32: ERROR_REPLY_ROUTINE (device_read_inband); ! 33: ! 34: #undef ERROR_REPLY_ROUTINE
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.