
  -spec advise(IoDevice, Offset, Length, Advise) -> ok | {error, Reason}
                  when
                      IoDevice :: io_device(),
                      Offset :: integer(),
                      Length :: integer(),
                      Advise :: posix_file_advise(),
                      Reason :: posix() | badarg.

Since:
  OTP R14B

  Types:
    -type posix_file_advise() ::
          normal | sequential | random | no_reuse | will_need |
          dont_need.

  advise/4 can be used to announce an intention to access file data
  in a specific pattern in the future, thus allowing the operating
  system to perform appropriate optimizations.

  On some platforms, this function might have no effect.
