Skip to content
mathfur edited this page Apr 30, 2013 · 10 revisions

呼出元

概要

  • servers/fs/device.cにて定義
  • 実際のデバイスI/Oが必要な場合に呼び出される

引数

int op;	   // DEV_READ | DEV_WRITE | DEV_IOCTL ... */
dev_t dev; // 対象デバイス
int proc;			/* in whose address space is buf? */
void *buf;			/* virtual address of the buffer */
off_t pos;			/* byte position */
int bytes;			/* how many bytes to transfer */
int flags;			/* special flags, like O_NONBLOCK */

実装

コメント

Clone this wiki locally