Commit da214a4
committed
net: add __sys_socket_file()
This works like __sys_socket(), except instead of allocating and
returning a socket fd, it just returns the file associated with the
socket. No fd is installed into the process file table.
This is similar to do_accept(), and allows io_uring to use this without
instantiating a file descriptor in the process file table.
Signed-off-by: Jens Axboe <[email protected]>
Acked-by: David S. Miller <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 0200ce6 commit da214a4
2 files changed
+43
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | | - | |
| 1541 | + | |
1542 | 1542 | | |
1543 | | - | |
1544 | 1543 | | |
1545 | | - | |
| 1544 | + | |
1546 | 1545 | | |
1547 | 1546 | | |
1548 | 1547 | | |
1549 | 1548 | | |
1550 | 1549 | | |
1551 | 1550 | | |
1552 | 1551 | | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
| 1552 | + | |
| 1553 | + | |
1556 | 1554 | | |
1557 | 1555 | | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
1558 | 1574 | | |
1559 | 1575 | | |
1560 | 1576 | | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
1564 | 1596 | | |
1565 | 1597 | | |
1566 | 1598 | | |
| |||
0 commit comments