2011-10-28 17 views
8

GCCの__attribute__(bitwise)は何を意味していますか?この属性はGCC-4.6の情報ページには記載されていません。私はソースでファイルopen-iscsi-2.0.871/include/iscsi_proto.hでそれにstubled私はバイトオーダーに関わる何かを疑っていたが、私は、任意の感覚を作成することはできません GCCビット単位の属性

... 
/* 
* If running svn modules we may need to define these. 
* This should not go upstream since this is already properly defined there 
*/ 
#ifdef __CHECKER__ 
#define __bitwise__ __attribute__((bitwise)) 
#else 
#define __bitwise__ 
#endif 
#ifdef __CHECK_ENDIAN__ 
#define __bitwise __bitwise__ 
#else 
#define __bitwise 
#endif 

/*! initiator tags; opaque for target */ 
typedef uint32_t __bitwise__ itt_t; 
/*! below makes sense only for initiator that created this tag */ 
#define build_itt(itt, age) ((__force itt_t)\ 
    ((itt) | ((age) << ISCSI_AGE_SHIFT))) 
#define get_itt(itt) ((__force uint32_t)(itt_t)(itt) & ISCSI_ITT_MASK) 
#define RESERVED_ITT ((__force itt_t)0xffffffff) 
... 

としてそれが使用されているプロジェクト オープンISCSI上記のスニペット。

答えて

2

Googleはhereと言っていますが、bitwiseはこれ以上意味がありません。

13

これは、明らかにGCCではなく、Sparseであり、Linuxカーネルで使用されるC用のセマンティックパーサーです。それはDocumentation/sparse.txtに記載されています。