JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... irus scanning and hierarchical storage management. In the original fanotify API, only a limited set of events was supported. In particular, there was no support for create, delete, and move events. The support for those events was ... added in Linux 5.1. (See inotify (7) for details of an API that did notify those events pre Linux 5.1.) inotify (7) API と比較して追加されている機能としては、 マウントされたファイルシステムの全オブジェクトを監 ... otify_init (2) が返した fanotify ファイルディスクリプターから ( read (2) などを使って) 読み出すことができる。 Two types of events are generated: notification events and permission events. Notification events are merely informative and require no actio ... ... s , unsigned int event_f_flags ); 説明 fanotify API の概要については fanotify (7) を参照。 fanotify_init () は新しい fanotify グループを初期化し、 ... AN_REPORT_TID (Linux 4.20 以降) Report thread ID (TID) instead of process ID (PID) in the pid field of the struct fanotify_event_metadata supplied to read (2) (see fanotify (7)). FAN_REPORT_FID (Linux 5.1 以降) This value allows the receipt of events ... which contain additional information about the underlying filesystem object correlated to an event. An additional record of type FAN_EVENT_INFO_TYPE_FID encapsulates the information about the object and is included alongs ... ... l_event * event ); 説明 このシステムコールは、ファイルディスクリプター epfd が参照する epoll (7) インスタンスに対する操作を行う。 ... _CTL_ADD 対象のファイルディスクリプター fd をファイルディスクリプター epfd が参照する epoll インスタンスに登録し、イベント event を fd に結び付けられた内部ファイルに関連付ける。 EPOLL_CTL_MOD イベント event を対象のファイルディスクリプター fd に関連付 ... けるように変更する。 EPOLL_CTL_DEL 対象のファイルディスクリプター fd を epfd が参照する epoll インスタンスから削除する。 event 引き数は無視されるので、NULL にすることもできる (但し、下記の「バグ」を参照)。 event 引き数は、ファイルディスクリプター fd ... ... NTR で失敗する。 signal (7) 参照)。 read (2) が成功すると、以下の構造体を 1 つ以上含むバッファーが返される: struct inotify_event { int wd; /* 監視対象ディスクリプター */ uint32_t mask; /* イベントを示すマスク */ uint32_t cookie; /* 関連するイベント群を ... らにヌルバイト ('\0') が含まれる場合もある。 len フィールドはヌルバイトを含む name の全てのバイト数を表す。 よって、 inotify_event 構造体のサイズは sizeof(struct inotify_event)+len である。 read (2) に渡されたバッファーが小さすぎて次のイベントに関する情 ... 0 を返す。 2.6.21 以降のカーネルでは、 read (2) はエラー EINVAL で失敗する。 バッファーサイズとして sizeof(struct inotify_event) + NAME_MAX + 1 を指定すれば、少なくとも 1 イベントで読み出しを行うには十分である。 inotify イベント inotify_add_watch (2) ... ... athname will be marked. All directories, subdirectories, and the contained files of the mount point will be monitored. The events which require that filesystem objects are identified by file handles, such as FAN_CREATE , FAN_ATTRIB , FAN_MOVE , and FA ... 作成する。 FAN_OPEN ファイルやディレクトリがオープンされた際にイベントを作成する。 FAN_OPEN_EXEC (Linux 5.0 以降) Create an event when a file is opened with the intent to be executed. See NOTES for additional details. FAN_ATTRIB (Linux 5.1 以降) Create ... an event when the metadata for a file or directory has changed. An fanotify group that identifies filesystem objects by file handle ... ... ウンターの現在値が npc に書き込まれる。 これにより、連続する spu_run () の呼び出しで同じ npc ポインターを使うことができる。 event 引数には、拡張ステータスコード用のバッファーを指定する。 SPU_CREATE_EVENTS_ENABLED フラグ付きで SPU コンテキストが作成され ... Linux カーネルによりこのバッファーに 拡張ステータスコードが格納される。 ステータスコードには以下の定数が一つ以上入る。 SPE_EVENT_DMA_ALIGNMENT DMA (direct memory access) のアライメントエラーが発生した。 SPE_EVENT_INVALID_DMA 無効な MFC (Memory Flow Co ... ntroller) DMA コマンドを行おうとした。 SPE_EVENT_SPE_DATA_STORAGE DMA ストレージエラーが発生した。 SPE_EVENT_SPE_ERROR 不正な命令が実行された。 NULL は event 引数として有効 ... ... _event * events , int maxevents , int timeout ); int epoll_pwait(int epfd , struct epoll_event * events , int maxevents , int tim ... eout , const sigset_t * sigmask ); 説明 The epoll_wait () system call waits for events on the epoll (7) instance referred to by the file descriptor epfd . The buffer pointed to by events is used to return inf ... ormation from the ready list about file descriptors in the interest list that have some events available. Up to maxevents are returned by epoll_wait (). The maxevents argument must be greater than zero. The timeout a ... ... _event * events , int maxevents , int timeout ); int epoll_pwait(int epfd , struct epoll_event * events , int maxevents , int tim ... eout , const sigset_t * sigmask ); 説明 The epoll_wait () system call waits for events on the epoll (7) instance referred to by the file descriptor epfd . The buffer pointed to by events is used to return inf ... ormation from the ready list about file descriptors in the interest list that have some events available. Up to maxevents are returned by epoll_wait (). The maxevents argument must be greater than zero. The timeout a ... ... tex_timedlock (), pthread_rwlock_timedrdlock (), pthread_rwlock_timedwrlock (), sem_timedwait (), posix_trace_timedgetnext_event (). TMR - _POSIX_TIMERS - _SC_TIMERS 以下の関数が存在する。 clock_getres (), clock_gettime (), clock_settime (), nanosleep ... attr_getcreatetime (), posix_trace_attr_getgenversion (), posix_trace_attr_getmaxdatasize (), posix_trace_attr_getmaxsystemeventsize (), posix_trace_attr_getmaxusereventsize (), posix_trace_attr_getname (), posix_trace_attr_getstreamfullpolicy (), pos ... e_attr_setstreamsize (), posix_trace_attr_setstreamfullpolicy (), posix_trace_clear (), posix_trace_create (), posix_trace_event (), posix_trace_eventid_equal (), posix_trace_eventid_get_name (), posix_trace_eventid_open (), posix_trace_eventtypelist_ ... ... si_timerid; /* Timer ID; POSIX.1b timers */ void *si_addr; /* Memory location which caused fault */ long si_band; /* Band event (was int in glibc 2.3.2 and earlier) */ int si_fd; /* File descriptor */ short si_addr_lsb; /* Least significant bit of ad ... ページ全体が壊れている場合には si_addr_lsb には log2(sysconf(_SC_PAGESIZE)) が入る。 SIGTRAP が ptrace (2) イベント (PTRACE_EVENT_foo) に対応して配送される際、 si_addr は設定されないが、 si_pid と si_uid にはトラップの配送に責任を負うプロセス ID とユー ... . * SIGIO / SIGPOLL (2 つの名前は Linux では同義語) では si_band と si_fd が設定される。 si_band イベントは、 poll (2) が revents フィールドに設定するのと同じ値が入ったビットマスクである。 si_fd フィールドは I/O イベントが発生したファイルディスクリプタ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。