JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... ct msqid_ds * buf ); 説明 msgctl () はメッセージキュー識別子 msqid で指定された System V メッセージキュー (message queue) に対して cmd で指定された制御操作を行なう。 msqid_ds データ構造体は < sys/msg.h > で以下のように定義されている: struct ms ... 2) */ time_t msg_ctime; /* Time of creation or last modification by msgctl() */ unsigned long msg_cbytes; /* # of bytes in queue */ msgqnum_t msg_qnum; /* # number of messages in queue */ msglen_t msg_qbytes; /* Maximum # of bytes in queue */ pid_t ms ... は以下の通りである: msg_perm This is an ipc_perm structure (see below) that specifies the access permissions on the message queue. msg_stime 最後の msgsnd (2) システムコールの時刻。 msg_rtime 最後の msgrcv (2) システムコールの時刻。 msg_ctime Time of c ... ... 様の機能を提供する。 メッセージキューの作成とオープンは mq_open (3) を使って行う。この関数は メッセージキュー記述子 (message queue descriptor) ( mqd_t ) を返す。これ以降のコールでは、オープンされたメッセージキューは メッセージキュー記述子 を使って参照さ ... ージ到着を非同期で 通知するように要求することもできる。 メッセージキュー記述子は オープンメッセージキュー記述 (open message queue description) への参照である ( open (2) も参照)。 fork (2) 実行後は、子プロセスは親プロセスのメッセージキュー記述子のコピー ... ートされている。 カーネルの設定 POSIX メッセージキューのサポートは、カーネルの設定 (configuration) オプション CONFIG_POSIX_MQUEUE で設定可能である。このオプションはデフォルトでは有効である。 持続性 POSIX メッセージキューはカーネル内で保持される。 mq_un ... ... int msgflg ); 説明 The msgget () system call returns the System V message queue identifier associated with the value of the key argument. It may be used either to obtain the identifier of a previously c ... reated message queue (when msgflg is zero and key does not have the value IPC_PRIVATE ), or to create a new set. key の値が IPC_PRIVATE の場合、 ... が返され、 errno にそのエラーが示される。 エラー 失敗した場合、 errno に以下の値のいずれか一つが設定される: EACCES A message queue exists for key , but the calling process does not have permission to access the queue, and does not have the CAP_IPC_OWNER ... ... eof(cpu)); Because all of the packets for a single stream (i.e., all packets for the same 4-tuple) arrive on the single RX queue that is associated with a particular CPU, the typical use case is to employ one listening process per RX queue, with the i ... ncoming flow being handled by a listener on the same CPU that is handling the RX queue. This provides optimal NUMA behavior and keeps CPU caches hot. SO_INCOMING_NAPI_ID (gettable since Linux 4.12) Returns a s ... ystem-level unique ID called NAPI ID that is associated with a RX queue on which the last packet associated with that socket is received. This can be used by an application to split the incoming ... ... , size_t msg_len , unsigned int * msg_prio ); #include < time.h > #include < mqueue.h > ssize_t mq_timedreceive(mqd_t mqdes , char * msg_ptr , size_t msg_len , unsigned int * msg_prio , const struct timespe ... メッセージが届くか、関数呼び出しがシグナルハンドラーにより 中断されるまで、停止 (block) する。 メッセージキュー記述 (message queue description) で O_NONBLOCK フラグが有効になっている場合は、 mq_receive () はエラー EAGAIN ですぐに失敗する。 mq_timedrecei ... ve () behaves just like mq_receive (), except that if the queue is empty and the O_NONBLOCK flag is not enabled for the message queue description, then abs_timeout points to a structure ... ... _len , unsigned int msg_prio ); #include < time.h > #include < mqueue.h > int mq_timedsend(mqd_t mqdes , const char * msg_ptr , size_t msg_len , unsigned int msg_prio , const struct timespec * ... 分な空間ができるか、 関数呼び出しがシグナルハンドラーにより中断されるまで、停止 (block) する。 メッセージキュー記述 (message queue description) で O_NONBLOCK フラグが有効になっている場合は、 mq_send () はエラー EAGAIN ですぐに失敗する。 mq_timedsend () ... behaves just like mq_send (), except that if the queue is full and the O_NONBLOCK flag is not enabled for the message queue description, then abs_timeout points to a structure w ... ... , size_t msg_len , unsigned int * msg_prio ); #include < time.h > #include < mqueue.h > ssize_t mq_timedreceive(mqd_t mqdes , char * msg_ptr , size_t msg_len , unsigned int * msg_prio , const struct timespe ... メッセージが届くか、関数呼び出しがシグナルハンドラーにより 中断されるまで、停止 (block) する。 メッセージキュー記述 (message queue description) で O_NONBLOCK フラグが有効になっている場合は、 mq_receive () はエラー EAGAIN ですぐに失敗する。 mq_timedrecei ... ve () behaves just like mq_receive (), except that if the queue is empty and the O_NONBLOCK flag is not enabled for the message queue description, then abs_timeout points to a structure ... ... _len , unsigned int msg_prio ); #include < time.h > #include < mqueue.h > int mq_timedsend(mqd_t mqdes , const char * msg_ptr , size_t msg_len , unsigned int msg_prio , const struct timespec * ... 分な空間ができるか、 関数呼び出しがシグナルハンドラーにより中断されるまで、停止 (block) する。 メッセージキュー記述 (message queue description) で O_NONBLOCK フラグが有効になっている場合は、 mq_send () はエラー EAGAIN ですぐに失敗する。 mq_timedsend () ... behaves just like mq_send (), except that if the queue is full and the O_NONBLOCK flag is not enabled for the message queue description, then abs_timeout points to a structure w ... ... , size_t msg_len , unsigned int * msg_prio ); #include < time.h > #include < mqueue.h > ssize_t mq_timedreceive(mqd_t mqdes , char * msg_ptr , size_t msg_len , unsigned int * msg_prio , const struct timespe ... メッセージが届くか、関数呼び出しがシグナルハンドラーにより 中断されるまで、停止 (block) する。 メッセージキュー記述 (message queue description) で O_NONBLOCK フラグが有効になっている場合は、 mq_receive () はエラー EAGAIN ですぐに失敗する。 mq_timedrecei ... ve () behaves just like mq_receive (), except that if the queue is empty and the O_NONBLOCK flag is not enabled for the message queue description, then abs_timeout points to a structure ... ... _len , unsigned int msg_prio ); #include < time.h > #include < mqueue.h > int mq_timedsend(mqd_t mqdes , const char * msg_ptr , size_t msg_len , unsigned int msg_prio , const struct timespec * ... 分な空間ができるか、 関数呼び出しがシグナルハンドラーにより中断されるまで、停止 (block) する。 メッセージキュー記述 (message queue description) で O_NONBLOCK フラグが有効になっている場合は、 mq_send () はエラー EAGAIN ですぐに失敗する。 mq_timedsend () ... behaves just like mq_send (), except that if the queue is full and the O_NONBLOCK flag is not enabled for the message queue description, then abs_timeout points to a structure w ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。