Searched refs:_ffi (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
H A D | ctypes.py | 22 from .bindings.libnvpair import ffi as _ffi unknown 26 type_info = _ffi.typeof(type_name) 37 _ffi.new(type_name + '*', value) 38 return _ffi.cast(type_name, value) 58 _ffi.typeof('uint8_t'): ('uint8', 'uint8'), 59 _ffi.typeof('int8_t'): ('int8', 'int8'), 60 _ffi.typeof('uint16_t'): ('uint16', 'uint16'), 61 _ffi.typeof('int16_t'): ('int16', 'int16'), 63 _ffi.typeof('int32_t'): ('int32', 'int32'), 65 _ffi.typeof('int64_t'): ('int64', 'int64'), [all …]
|
H A D | _nvlist.py | 58 _ffi = libnvpair.ffi variable 71 nvlistp = _ffi.new("nvlist_t **") 96 nvlistp = _ffi.new("nvlist_t **") 97 nvlistp[0] = _ffi.NULL # to be sure 104 if nvlistp[0] != _ffi.NULL: 106 nvlistp[0] = _ffi.NULL 178 if isinstance(specimen, _ffi.CData): 190 ctype = _ffi.typeof(element) 222 specimen, _ffi.CData) and _ffi.typeof(specimen) in _type_to_suffix: 234 while pair != _ffi.NULL: [all …]
|
H A D | _libzfs_core.py | 630 c_fromsnap = _ffi.NULL 800 c_origin = _ffi.NULL 1056 c_origin = _ffi.NULL 1143 c_origin = _ffi.NULL 1185 _ffi.buffer(record)[:] = os.read(fd, _ffi.sizeof(record[0])) 1287 c_origin = _ffi.NULL 1400 c_origin = _ffi.NULL 1529 c_origin = _ffi.NULL 1691 ret = _lib.lzc_promote(name, _ffi.NULL, _ffi.NULL) 1814 ret = _lib.lzc_set_props(name, props_nv, _ffi.NULL, _ffi.NULL) [all …]
|
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/bindings/ |
H A D | __init__.py | 34 self._ffi = ffi 43 self._lib = self._ffi.dlopen(self._libname)
|