{"id":2431,"url":"https://patchwork.libcamera.org/api/1.1/covers/2431/?format=json","web_url":"https://patchwork.libcamera.org/cover/2431/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20191217015106.1175515-1-niklas.soderlund@ragnatech.se>","date":"2019-12-17T01:51:03","name":"[libcamera-devel,v2,0/3] libcamera: Add FileDescriptor to help pass numerical fds around","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/1.1/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/2431/mbox/","series":[{"id":590,"url":"https://patchwork.libcamera.org/api/1.1/series/590/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=590","date":"2019-12-17T01:51:03","name":"libcamera: Add FileDescriptor to help pass numerical fds around","version":2,"mbox":"https://patchwork.libcamera.org/series/590/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2431/comments/","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net\n\t[195.74.38.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D5E82601E7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 17 Dec 2019 02:51:16 +0100 (CET)","from bismarck.berto.se (p54ac5865.dip0.t-ipconnect.de\n\t[84.172.88.101]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA\n\tid b1aaadaf-206f-11ea-a00b-005056917a89;\n\tTue, 17 Dec 2019 02:51:14 +0100 (CET)"],"X-Halon-ID":"b1aaadaf-206f-11ea-a00b-005056917a89","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 17 Dec 2019 02:51:03 +0100","Message-Id":"<20191217015106.1175515-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.24.0","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/3] libcamera: Add FileDescriptor to\n\thelp pass numerical fds around","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Tue, 17 Dec 2019 01:51:17 -0000"},"content":"Hi,\n\nThis was in part previously part of the rather large buffer rework\nseries but is now broken out to a separate series. All review comments\nfrom the buffer v1 series have been addressed and a new test have been\nadded on top.\n\nI hope to merge this as soon as it's ready as I really like to cut down\non the size of the buffer series. If you think this should not be merged\nuntil buffers are ready please let me know.\n\n* Changes since v1\n- Fix documentation for 1/3 and 2/3.\n- Fix memory leak in error cases in 3/3.\n- Check inode number when verifying fd is good in 3/3.\n- Dropped some redundant tests in 3/3.\n\nNiklas Söderlund (3):\n  libcamera: utils: Add exchange()\n  libcamera: Add FileDescriptor to help pass numerical fds around\n  test: file_descriptor: Add test\n\n include/libcamera/file_descriptor.h |  33 ++++++\n include/libcamera/meson.build       |   1 +\n src/libcamera/file_descriptor.cpp   | 164 +++++++++++++++++++++++++++\n src/libcamera/include/utils.h       |   9 ++\n src/libcamera/meson.build           |   1 +\n src/libcamera/utils.cpp             |   8 ++\n test/file_descriptor.cpp            | 165 ++++++++++++++++++++++++++++\n test/meson.build                    |   1 +\n 8 files changed, 382 insertions(+)\n create mode 100644 include/libcamera/file_descriptor.h\n create mode 100644 src/libcamera/file_descriptor.cpp\n create mode 100644 test/file_descriptor.cpp"}