Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 3 of 3) sorted by relevance

/kernel/tests/net/test/
Dbpf.py205 def BpfSyscall(op, attr): argument
206 ret = libc.syscall(__NR_bpf, op, csocket.VoidPointer(attr), len(attr))
212 attr = BpfAttrCreate((map_type, key_size, value_size, max_entries, map_flags))
213 return BpfSyscall(BPF_MAP_CREATE, attr)
221 attr = BpfAttrOps((map_fd, key_ptr, value_ptr, flags))
222 BpfSyscall(BPF_MAP_UPDATE_ELEM, attr)
228 attr = BpfAttrOps(
230 BpfSyscall(BPF_MAP_LOOKUP_ELEM, attr)
243 attr = BpfAttrOps(
245 BpfSyscall(BPF_MAP_GET_NEXT_KEY, attr)
[all …]
Dcstruct.py204 def _FieldIndex(self, attr): argument
206 return self._fieldnames.index(attr)
209 (self._name, attr))
Dsock_diag.py287 attr, rest = rest[:attrlen], rest[attrlen:]
288 arg = struct.unpack("=I", attr)