GCC的__attribute__(bitwise)
是什麼意思?該屬性在GCC-4.6的信息頁面中未提及。我的文件open-iscsi-2.0.871/include/iscsi_proto.h
在源stubled在其項目開放的iSCSI作爲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)
...
我懷疑涉及字節順序的東西,但我不能做的任何意義上它是用於以上給出的片段。