docs: def getflags(fd):
      """
      Gets per-file filesystem flags.
      """
  
      flags_ptr = ffi.new('uint64_t*')
      flags_buf = ffi.buffer(flags_ptr)
      fcntl.ioctl(fd, lib.FS_IOC_GETFLAGS, flags_buf)
      return flags_ptr[0]