MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / mali_ioctl

Function mali_ioctl

tests/framework/instruments/hwc.hpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373template <typename T>
374static inline int mali_ioctl(int fd, T &arg)
375{
376 auto *hdr = &arg.header;
377 const int cmd = _IOC(_IOC_READ | _IOC_WRITE, LINUX_UK_BASE_MAGIC, hdr->id, sizeof(T));
378
379 if (ioctl(fd, cmd, &arg))
380 return -1;
381 if (hdr->ret)
382 return -1;
383
384 return 0;
385}
386} // namespace mali_userspace
387
388#endif /* DOXYGEN_SKIP_THIS */

Callers 2

get_mali_hw_infoFunction · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected