函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitfield.h Create Date:2022-07-27 07:30:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:be16_get_bits

函数原型:static inline __attribute__((__always_inline__)) u16 be16_get_bits(__be16 v, u16 field)

返回类型:u16

参数:

类型参数名称
__be16v
u16field
139  返回:如果__builtin_constant_p((__u16)((__u16)(__be16)(v)))则v按位与0x00ffU的值左移8位按位或v按位与0xff00U的值右移8位否则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)