1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859(*
* Copyright (C) Citrix Systems Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; version 2.1 only. with the special
* exception on linking described in file LICENSE.md.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*)openCtypesmoduleMake(S:Cstubs_structs.TYPE)=structopenSmoduleDlm_lksb=structtypedlm_lksbtypet=dlm_lksbstructurelett:ttyp=structure"dlm_lksb"letsb_status=fieldt"sb_status"intletsb_lkid=fieldt"sb_lkid"uint32_tletsb_flags=fieldt"sb_flags"charletsb_lvbptr=fieldt"sb_lvbptr"charlet()=sealtendmoduleMode=structletlkm_nlmode=constant"LKM_NLMODE"uint32_tletlkm_crmode=constant"LKM_CRMODE"uint32_tletlkm_cwmode=constant"LKM_CWMODE"uint32_tletlkm_prmode=constant"LKM_PRMODE"uint32_tletlkm_pwmode=constant"LKM_PWMODE"uint32_tletlkm_exmode=constant"LKM_EXMODE"uint32_tendmoduleFlags=structletlkf_noqueue=constant"LKF_NOQUEUE"uint32_tletlkf_convert=constant"LKF_CONVERT"uint32_tletlkf_valblk=constant"LKF_VALBLK"uint32_tletlkf_queucvt=constant"LKF_QUECVT"uint32_tletlkf_expedite=constant"LKF_EXPEDITE"uint32_tletlkf_persistent=constant"LKF_PERSISTENT"uint32_tletlkf_convdeadlk=constant"LKF_CONVDEADLK"uint32_tletlkf_nodlckwt=constant"LKF_NODLCKWT"uint32_tletlkf_nodlckblk=constant"LKF_NODLCKBLK"uint32_tletlkf_noqueuebast=constant"LKF_NOQUEUEBAST"uint32_tletlkf_headque=constant"LKF_HEADQUE"uint32_tletlkf_noorder=constant"LKF_NOORDER"uint32_tletlkf_altpr=constant"LKF_ALTPR"uint32_tletlkf_altcw=constant"LKF_ALTCW"uint32_tletlkf_timeout=constant"LKF_TIMEOUT"uint32_tletlkf_wait=constant"LKF_WAIT"uint32_tendletdlm_lsfl_timewarn=constant"DLM_LSFL_TIMEWARN"uint32_tend