Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitfield.h Create Date:2022-07-28 06:33:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:be16_encode_bits

Proto:static inline __attribute__((__always_inline__)) __be16 be16_encode_bits(u16 v, u16 field)

Type:__be16

Parameter:

TypeParameterName
u16v
u16field
139  If __builtin_constant_p(v) && v & ~field_mask(field) Then __field_overflow()
139  Return If __builtin_constant_p((__u16)(((v & field_mask(field)) * field_multiplier(field)))) Then ( (v & field_mask(field)) * field_multiplier(field) & 0x00ffU) << 8 | ( (v & field_mask(field)) * field_multiplier(field) & 0xff00U) >> 8 Else Implement the following as inlines, but define the interface using* macros to allow constant folding when possible:* ___swab16, ___swab32, ___swab64, ___swahw32, ___swahb32