1. 21 4月, 2020 1 次提交
  2. 11 3月, 2020 3 次提交
  3. 03 3月, 2020 1 次提交
  4. 01 2月, 2020 1 次提交
    • J
      mm/gup: introduce pin_user_pages*() and FOLL_PIN · eddb1c22
      John Hubbard 提交于
      Introduce pin_user_pages*() variations of get_user_pages*() calls, and
      also pin_longterm_pages*() variations.
      
      For now, these are placeholder calls, until the various call sites are
      converted to use the correct get_user_pages*() or pin_user_pages*() API.
      
      These variants will eventually all set FOLL_PIN, which is also
      introduced, and thoroughly documented.
      
          pin_user_pages()
          pin_user_pages_remote()
          pin_user_pages_fast()
      
      All pages that are pinned via the above calls, must be unpinned via
      put_user_page().
      
      The underlying rules are:
      
      * FOLL_PIN is a gup-internal flag, so the call sites should not directly
        set it.  That behavior is enforced with assertions.
      
      * Call sites that want to indicate that they are going to do DirectIO
        ("DIO") or something with similar characteristics, should call a
        get_user_pages()-like wrapper call that sets FOLL_PIN.  These wrappers
        will:
      
          * Start with "pin_user_pages" instead of "get_user_pages".  That
            makes it easy to find and audit the call sites.
      
          * Set FOLL_PIN
      
      * For pages that are received via FOLL_PIN, those pages must be returned
        via put_user_page().
      
      Thanks to Jan Kara and Vlastimil Babka for explaining the 4 cases in
      this documentation.  (I've reworded it and expanded upon it.)
      
      Link: http://lkml.kernel.org/r/20200107224558.2362728-12-jhubbard@nvidia.comSigned-off-by: NJohn Hubbard <jhubbard@nvidia.com>
      Reviewed-by: NJan Kara <jack@suse.cz>
      Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>		[Documentation]
      Reviewed-by: NJérôme Glisse <jglisse@redhat.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Ira Weiny <ira.weiny@intel.com>
      Cc: Alex Williamson <alex.williamson@redhat.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Björn Töpel <bjorn.topel@intel.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
      Cc: Jason Gunthorpe <jgg@mellanox.com>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Kirill A. Shutemov <kirill@shutemov.name>
      Cc: Leon Romanovsky <leonro@mellanox.com>
      Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      eddb1c22
  5. 03 1月, 2020 1 次提交
    • A
      Documentation: document ioctl interfaces better · 8ce156de
      Arnd Bergmann 提交于
      Documentation/process/botching-up-ioctls.rst was orignally written as
      a blog post for DRM driver writers, so it it misses some points while
      going into a lot of detail on others.
      
      Try to provide a replacement that addresses typical issues across a wider
      range of subsystems, and follows the style of the core-api documentation
      better.
      
      Many improvements to the document are suggested by Ben Hutchings
      <ben.hutchings@codethink.co.uk>, Jonathan Corbet <corbet@lwn.net> and
      Geert Uytterhoeven <geert@linux-m68k.org>.
      Reviewed-by: NBen Hutchings <ben.hutchings@codethink.co.uk>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      8ce156de
  6. 11 12月, 2019 1 次提交
  7. 08 10月, 2019 1 次提交
  8. 01 8月, 2019 2 次提交
  9. 15 7月, 2019 1 次提交
  10. 27 6月, 2019 1 次提交
  11. 09 6月, 2019 1 次提交
  12. 02 4月, 2019 1 次提交
  13. 13 3月, 2019 1 次提交
  14. 21 10月, 2018 1 次提交
  15. 13 10月, 2018 1 次提交
  16. 07 10月, 2018 1 次提交
  17. 21 9月, 2018 1 次提交
  18. 24 8月, 2018 1 次提交
  19. 03 8月, 2018 1 次提交
  20. 23 7月, 2018 1 次提交
    • A
      Documentation: document ktime_get_*() APIs · 0e3fd810
      Arnd Bergmann 提交于
      As Dave Chinner points out, we don't have a proper documentation for the
      ktime_get() family of interfaces, making it rather unclear which of the
      over 30 (!) interfaces one should actually use in a driver or elsewhere
      in the kernel.
      
      I wrote up an explanation from how I personally see the interfaces,
      documenting what each of the functions do and hopefully making it a bit
      clearer which should be used where.
      
      This is the first time I tried writing .rst format documentation, so
      in addition to any mistakes in the content, I probably also introduce
      nonstandard formatting ;-)
      
      I first tried to add an extra section to
      Documentation/timers/timekeeping.txt, but this is currently not included
      in the generated API, and it seems useful to have the API docs as part
      of what gets generated in
      https://www.kernel.org/doc/html/latest/core-api/index.html#core-utilities
      instead, so I started a new file there.
      
      I also considered adding the documentation inline in the
      include/linux/timekeeping.h header, but couldn't figure out how to do
      that in a way that would result both in helpful inline comments as
      well as readable html output, so I settled for the latter, with
      a small note pointing to it from the header.
      
      Cc: Dave Chinner <david@fromorbit.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Stephen Boyd <sboyd@kernel.org>
      Tested-by: NRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: NRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      0e3fd810
  21. 29 5月, 2018 1 次提交
  22. 09 5月, 2018 2 次提交
  23. 07 2月, 2018 1 次提交
  24. 02 1月, 2018 1 次提交
  25. 22 12月, 2017 1 次提交
    • T
      doc: convert printk-formats.txt to rst · b3ed2321
      Tobin C. Harding 提交于
      Documentation/printk-formats.txt is a candidate for conversion to
      ReStructuredText format. Some effort has already been made to do this
      conversion even thought the suffix is currently .txt
      
      Changes required to complete conversion
      
       - Move printk-formats.txt to core-api/printk-formats.rst
       - Add entry to Documentation/core-api/index.rst
       - Remove entry from Documentation/00-INDEX
       - Fix minor grammatical errors.
       - Order heading adornments as suggested by rst docs.
       - Use 'Passed by reference' uniformly.
       - Update pointer documentation around %px specifier.
       - Fix erroneous double backticks (to commas).
       - Remove extraneous double backticks (suggested by Jonathan Corbet).
       - Simplify documentation for kobject.
      Signed-off-by: NTobin C. Harding <me@tobin.cc>
      [jc: downcased "kernel"]
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      b3ed2321
  26. 12 12月, 2017 1 次提交
  27. 31 8月, 2017 1 次提交
  28. 16 5月, 2017 1 次提交
  29. 03 4月, 2017 2 次提交
  30. 30 3月, 2017 1 次提交
  31. 14 1月, 2017 1 次提交
  32. 01 12月, 2016 3 次提交
  33. 30 11月, 2016 1 次提交