Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dbpf.py144 attr = BpfAttrCreate((map_type, key_size, value_size, max_entries))
145 ret = libc.syscall(__NR_bpf, BPF_MAP_CREATE, attr.CPointer(), len(attr))
155 attr = BpfAttrOps((map_fd, key_ptr, value_ptr, flags))
157 attr.CPointer(), len(attr))
164 attr = BpfAttrOps(
167 attr.CPointer(), len(attr))
175 attr = BpfAttrOps(
178 attr.CPointer(), len(attr))
185 attr = BpfAttrOps((map_fd, ctypes.addressof(c_key), 0, 0))
187 attr.CPointer(), len(attr))
[all …]
Dcstruct.py156 def _FieldIndex(self, attr): argument
158 return self._fieldnames.index(attr)
161 (self._name, attr))
Dsock_diag.py288 attr, rest = rest[:attrlen], rest[attrlen:]
289 arg = struct.unpack("=I", attr)