JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... void * payload , size_t plen , key_serial_t keyring ); 説明 add_key () は、 指定した type と description を持つ鍵の作成、更新を行うように ... カーネルに指示し、 長さ plen の payload で鍵を生成し、 指定された keyring にその鍵を追加し、 鍵リングのシリアル番号を返す。 鍵タイプによっては、 フォーマットが違っ ... サービスを表す文字列とコロンをプレフィックスに指定するのが推奨される方法である (例えば `` afs:mykey '')。 このタイプの鍵には payload に空文字列つまり NULL を指定する。 ``keyring'' 鍵リングは、 任意のタイプの他の鍵の列へのリンクを保持できる特別な鍵タイプで ... ... ; struct nlmsghdr *NLMSG_NEXT(struct nlmsghdr * nlh , int len ); int NLMSG_OK(struct nlmsghdr * nlh , int len ); int NLMSG_PAYLOAD(struct nlmsghdr * nlh , int len ); 説明 < linux/netlink.h > では、 netlink データグラムにアクセスしたり、これを作成するため ... のマクロだけを使ってアクセスすべきである。 NLMSG_ALIGN netlink メッセージの長さを丸めて正しく揃える。 NLMSG_LENGTH 格納領域 (payload) の長さ len を引数にとり、 nlmsghdr の nlmsg_len フィールドに代入できる 揃えられた長さ (aligned length) を返す。 NLMSG_SPA ... ージヘッダーの長さ分を差し引く。 NLMSG_OK Netlink メッセージが途切れておらず、かつ解釈可能な形の場合であれば真を返す。 NLMSG_PAYLOAD nlmsghdr に関連づけられた格納領域の長さを返す。 準拠 これらのマクロは非標準で、Linux での拡張である。 注意 通常はカーネルの ... ... , NETLINK_ROUTE); int RTA_OK(struct rtattr * rta , int rtabuflen ); void *RTA_DATA(struct rtattr * rta ); unsigned int RTA_PAYLOAD(struct rtattr * rta ); struct rtattr *RTA_NEXT(struct rtattr * rta , unsigned int rtabuflen ); unsigned int RTA_LENGTH(uns ... セージ中にはもうそれ以上属性は無いと考えなければならない。 RTA_DATA( rta ) はこの属性データの先頭へのポインターを返す。 RTA_PAYLOAD( rta ) はこの属性データの長さを返す。 RTA_NEXT( rta , attrlen ) は rta の次にある属性を取得する。 このマクロを呼ぶと attrl ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... ... r to the data portion of a cmsghdr . The pointer returned cannot be assumed to be suitably aligned for accessing arbitrary payload data types. Applications should not cast it to a pointer type matching the payload, but should instead use memcpy (3) to c ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。