Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:be16_get_bits

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

Type:u16

Parameter:

TypeParameterName
__be16v
u16field
139  Return (If __builtin_constant_p((__u16)((__u16)(__be16)(v))) Then (v & 0x00ffU) << 8 | (v & 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 & field) / field_multiplier(field)