code: public static int ioprioGetIfPossible() throws IOException {
      if (nativeLoaded && ioprioPossible) {
        try {
          return ioprio_get();
        } catch (UnsupportedOperationException uoe) {
          LOG.warn("ioprioGetIfPossible() failed", uoe);
          ioprioPossible = false;
        } catch (UnsatisfiedLinkError ule) {
          LOG.warn("ioprioGetIfPossible() failed", ule);
          ioprioPossible = false;
        } catch (NativeIOException nie) {
          LOG.warn("ioprioGetIfPossible() failed", nie);
          throw nie;
        }
      }
      return -1;
    }
docs: Call ioprio_get for this thread.
  
  @throws NativeIOException
  if there is an error with the syscall
  @return -1 on failure, ioprio value on success.