\hypertarget{vmci__kernel__defs_8h_source}{}\doxysection{vmci\+\_\+kernel\+\_\+defs.\+h}
\label{vmci__kernel__defs_8h_source}\index{dev/vmware/vmci/vmci\_kernel\_defs.h@{dev/vmware/vmci/vmci\_kernel\_defs.h}}
\mbox{\hyperlink{vmci__kernel__defs_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00002}00002 \textcolor{comment}{ * Copyright (c) 2018 VMware, Inc.}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00004}00004 \textcolor{comment}{ * SPDX-\/License-\/Identifier: (BSD-\/2-\/Clause OR GPL-\/2.0)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00006}00006 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00007}00007 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00008}00008 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00009}00009 \textcolor{comment}{/* Some common utilities used by the VMCI kernel module. */}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00010}00010 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00011}00011 \textcolor{preprocessor}{\#ifndef \_VMCI\_KERNEL\_DEFS\_H\_}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00012}00012 \textcolor{preprocessor}{\#define \_VMCI\_KERNEL\_DEFS\_H\_}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00013}00013 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00014}00014 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00015}00015 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00016}00016 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00017}\mbox{\hyperlink{vmci__kernel__defs_8h_aeea70bc23d3f8e0d0272ba17f5572f75}{00017}} \textcolor{keyword}{typedef} uint32\_t \mbox{\hyperlink{vmci__kernel__defs_8h_aeea70bc23d3f8e0d0272ba17f5572f75}{PPN}};}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00018}00018 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00019}\mbox{\hyperlink{vmci__kernel__defs_8h_a0966b817b229d48e5ffc7feab19a0be6}{00019}} \textcolor{preprocessor}{\#define ASSERT(cond)            KASSERT(cond, ("{}\%s"{}}, \#cond))}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00020}\mbox{\hyperlink{vmci__kernel__defs_8h_a826b9f0845a141188be04126e18038af}{00020}} \textcolor{preprocessor}{\#define ASSERT\_ON\_COMPILE(e)    \_Static\_assert(e, \#e);}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00021}00021 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00022}\mbox{\hyperlink{vmci__kernel__defs_8h_a11e3918ed1de5a8a6ff2acd535251eee}{00022}} \textcolor{preprocessor}{\#define LIKELY(\_exp)            \_\_predict\_true(\_exp)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00023}\mbox{\hyperlink{vmci__kernel__defs_8h_ab82ffbad14a2ec7b9d92039d53ed3f89}{00023}} \textcolor{preprocessor}{\#define UNLIKELY(\_exp)          \_\_predict\_false(\_exp)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00024}00024 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00025}\mbox{\hyperlink{vmci__kernel__defs_8h_ab49d4766123e35387cdce15d4187547d}{00025}} \textcolor{preprocessor}{\#define CONST64U(c)             UINT64\_C(c)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00026}00026 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00027}\mbox{\hyperlink{vmci__kernel__defs_8h_aad1fea22deb09279b4487665bb0b0d0e}{00027}} \textcolor{preprocessor}{\#define ARRAYSIZE(a)            nitems(a)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00028}00028 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00029}\mbox{\hyperlink{vmci__kernel__defs_8h_a20c604ddc8550203707ee1ef509ba365}{00029}} \textcolor{preprocessor}{\#define ROUNDUP(x, y)           roundup(x, y)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00030}\mbox{\hyperlink{vmci__kernel__defs_8h_a23b686a01456b76bd485aea2084952f4}{00030}} \textcolor{preprocessor}{\#define CEILING(x, y)           howmany(x, y)}}
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00031}00031 }
\DoxyCodeLine{\Hypertarget{vmci__kernel__defs_8h_source_l00032}00032 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* !\_VMCI\_KERNEL\_DEFS\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
