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_replace_bits

Proto:static inline __attribute__((__always_inline__)) __be16 be16_replace_bits(__be16 old, u16 val, u16 field)

Type:__be16

Parameter:

TypeParameterName
__be16old
u16val
u16field
139  Return old & ~If __builtin_constant_p((__u16)((field))) Then (field & 0x00ffU) << 8 | (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 | be16_encode_bits(val, field)