Re: [PATCH 13/19] net: split out functions related to registering inflight socket files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/8/19 6:34 PM, Jens Axboe wrote:
We need this functionality for the io_uring file registration, but
we cannot rely on it since CONFIG_UNIX can be modular. Move the helpers
to a separate file, that's always builtin to the kernel if CONFIG_UNIX is
m/y.

No functional changes in this patch, just moving code around.

Cc: netdev@xxxxxxxxxxxxxxx
Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
  include/net/af_unix.h |   1 +
  net/unix/Kconfig      |   5 ++
  net/unix/Makefile     |   2 +
  net/unix/af_unix.c    |  63 +-----------------
  net/unix/garbage.c    |  71 +-------------------
  net/unix/scm.c        | 146 ++++++++++++++++++++++++++++++++++++++++++
  net/unix/scm.h        |  10 +++
  7 files changed, 168 insertions(+), 130 deletions(-)
  create mode 100644 net/unix/scm.c
  create mode 100644 net/unix/scm.h

Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux