Skip to content

Commit caa8374

Browse files
sjp38dbaluta
authored andcommitted
Documentation/networking: Provide a link to 'lnet_sock_accept()'
By the commit be65f9e ("staging: lustre: delete the filesystem from the tree."), 'lnet_sock_accept()' code has removed. To let the users easily reference the code, this commit adds a link to the code. Signed-off-by: SeongJae Park <sj38.park@gmail.com>
1 parent ea5dae0 commit caa8374

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/teaching/labs/networking.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,10 +1152,11 @@ Read the `Operations on the socket structure`_ and `The struct proto_ops
11521152
structure`_ sections.
11531153

11541154
For the kernel space ``accept`` equivalent, see the system call handler for
1155-
:c:func:`sys_accept4`. Follow the :c:func:`lnet_sock_accept` implementation, and
1156-
how the ``sock->ops->accept`` call is used. Use ``0`` as the value for the
1157-
second to last argument (``flags``), and ``true`` for the last argument
1158-
(``kern``).
1155+
:c:func:`sys_accept4`. Follow the `lnet_sock_accept
1156+
<https://elixir.bootlin.com/linux/v4.17/source/drivers/staging/lustre/lnet/lnet/lib-socket.c#L511>`_
1157+
implementation, and how the ``sock->ops->accept`` call is used. Use ``0`` as
1158+
the value for the second to last argument (``flags``), and ``true`` for the
1159+
last argument (``kern``).
11591160

11601161
.. note::
11611162

0 commit comments

Comments
 (0)