/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_RANGE_H #define _LINUX_RANGE_H #include struct range { u64 start; u64 end; }; static inline u64 range_len(const struct range *range) { return range->end - range->start + 1; } int add_range(struct range *range, int az, int nr_range, u64 start, u64 end); int add_range_with_merge(struct range *range, int az, int nr_range, u64 start, u64 end); void subtract_range(struct range *range, int az, u64 start, u64 end); int clean_sort_range(struct range *range, int az); void sort_range(struct range *range, int nr_range); #define MAX_RESOURCE ((resource_size_t)~0) static inline resource_size_t cap_resource(u64 val) { if (val > MAX_RESOURCE) return MAX_RESOURCE; return val; } #endif 2a9208bbcd196210be2f5396744cda302'/> Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/net/rds/message.c
AgeCommit message (Expand)Author
2020-04-15net/rds: Use ERR_PTR for rds_message_alloc_sgs()Jason Gunthorpe
2020-04-09net/rds: Replace struct rds_mr's r_refcount with struct krefKa-Cheong Poon
2019-01-07rds: use DIV_ROUND_UP instead of ceilJacob Wen
2018-12-19net/rds: remove user triggered WARN_ON in rds_sendmsgshamir rabinovitch
2018-07-24rds: remove trailing whitespace and blank linesStephen Hemminger
2018-03-12rds: remove redundant variable 'sg_off'Colin Ian King
2018-03-08rds: rds_info_from_znotifier() can be statickbuild test robot
2018-03-08rds: rds_message_zcopy_from_user() can be statickbuild test robot
2018-03-07rds: use list structure to track information for zerocopy completion notifica...Sowmini Varadhan
2018-03-07rds: refactor zcopy code into rds_message_zcopy_from_userSowmini Varadhan
2018-02-27rds: deliver zerocopy completion notification with dataSowmini Varadhan
2018-02-16rds: zerocopy Tx support.Sowmini Varadhan
2018-02-16rds: support for zcopy completion notificationSowmini Varadhan
2018-02-16rds: hold a sock ref from rds_message to the rds_sockSowmini Varadhan