(s)
| 19 | return made |
| 20 | |
| 21 | def format_struct(s): |
| 22 | sdats = [] |
| 23 | for field_name, field_type in s._fields_: |
| 24 | dat = getattr(s, field_name) |
| 25 | if isinstance(dat, int): sdats.append(f"{field_name}:0x{dat:X}") |
| 26 | else: sdats.append(f"{field_name}:{dat}") |
| 27 | return sdats |
| 28 | |
| 29 | idirs = {"IOW": 1, "IOR": 2, "IOWR": 3} |
| 30 | def ioctls_from_header(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…