[libcamera-devel] [PATCH v2 0/3] libcamera: Add FileDescriptor to help pass numerical fds around

Niklas Söderlund niklas.soderlund at ragnatech.se
Tue Dec 17 02:51:03 CET 2019


Hi,

This was in part previously part of the rather large buffer rework
series but is now broken out to a separate series. All review comments
from the buffer v1 series have been addressed and a new test have been
added on top.

I hope to merge this as soon as it's ready as I really like to cut down
on the size of the buffer series. If you think this should not be merged
until buffers are ready please let me know.

* Changes since v1
- Fix documentation for 1/3 and 2/3.
- Fix memory leak in error cases in 3/3.
- Check inode number when verifying fd is good in 3/3.
- Dropped some redundant tests in 3/3.

Niklas Söderlund (3):
  libcamera: utils: Add exchange()
  libcamera: Add FileDescriptor to help pass numerical fds around
  test: file_descriptor: Add test

 include/libcamera/file_descriptor.h |  33 ++++++
 include/libcamera/meson.build       |   1 +
 src/libcamera/file_descriptor.cpp   | 164 +++++++++++++++++++++++++++
 src/libcamera/include/utils.h       |   9 ++
 src/libcamera/meson.build           |   1 +
 src/libcamera/utils.cpp             |   8 ++
 test/file_descriptor.cpp            | 165 ++++++++++++++++++++++++++++
 test/meson.build                    |   1 +
 8 files changed, 382 insertions(+)
 create mode 100644 include/libcamera/file_descriptor.h
 create mode 100644 src/libcamera/file_descriptor.cpp
 create mode 100644 test/file_descriptor.cpp

-- 
2.24.0



More information about the libcamera-devel mailing list