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:u16_encode_bits

Proto:static inline __attribute__((__always_inline__)) __u16 u16_encode_bits(u16 v, u16 field)

Type:__u16

Parameter:

TypeParameterName
u16v
u16field
139  If __builtin_constant_p(v) && v & ~field_mask(field) Then __field_overflow()
139  Return (v & field_mask(field)) * field_multiplier(field)