Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:be64_replace_bits

Proto:static inline __attribute__((__always_inline__)) __be64 be64_replace_bits(__be64 old, u64 val, u64 field)

Type:__be64

Parameter:

TypeParameterName
__be64old
u64val
u64field
141  Return old & ~If __builtin_constant_p((__u64)((field))) Then (field & 0x00000000000000ffULL) << 56 | (field & 0x000000000000ff00ULL) << 40 | (field & 0x0000000000ff0000ULL) << 24 | (field & 0x00000000ff000000ULL) << 8 | (field & 0x000000ff00000000ULL) >> 8 | (field & 0x0000ff0000000000ULL) >> 24 | (field & 0x00ff000000000000ULL) >> 40 | (field & 0xff00000000000000ULL) >> 56 Else __fswab64((field)) | be64_encode_bits(val, field)