Home | History | Annotate | Download | only in test

Lines Matching refs:ctypes

17 import ctypes
156 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True)
172 c_value = ctypes.c_uint32(value)
173 c_key = ctypes.c_uint32(key)
174 value_ptr = ctypes.addressof(c_value)
175 key_ptr = ctypes.addressof(c_key)
181 c_value = ctypes.c_uint32(0)
182 c_key = ctypes.c_uint32(key)
184 (map_fd, ctypes.addressof(c_key), ctypes.addressof(c_value), 0))
190 c_key = ctypes.c_uint32(key)
191 c_next_key = ctypes.c_uint32(0)
193 (map_fd, ctypes.addressof(c_key), ctypes.addressof(c_next_key), 0))
199 c_key = ctypes.c_uint32(key)
200 attr = BpfAttrOps((map_fd, ctypes.addressof(c_key), 0, 0))
206 insn_buff = ctypes.create_string_buffer(bpf_prog)
207 gpl_license = ctypes.create_string_buffer(b"GPL")
208 log_buf = ctypes.create_string_buffer(b"", LOG_SIZE)
210 ctypes.addressof(insn_buff),
211 ctypes.addressof(gpl_license), LOG_LEVEL,
212 LOG_SIZE, ctypes.addressof(log_buf), 0))
217 prog_ptr = ctypes.c_uint32(prog_fd)
219 ctypes.addressof(prog_ptr), ctypes.sizeof(prog_ptr))