* [PATCH net-next v2 1/3] net: dns_resolver: Use reST bullet list for features list
2025-09-24 2:06 [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup Bagas Sanjaya
@ 2025-09-24 2:06 ` Bagas Sanjaya
2025-09-24 2:06 ` [PATCH net-next v2 2/3] net: dns_resolver: Move dns_query() explanation out of code block Bagas Sanjaya
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2025-09-24 2:06 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Documentation, Linux Networking
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Jonathan Corbet, Mauro Carvalho Chehab, Kees Cook,
Bagas Sanjaya
Features overview list uses an asterisk in parentheses (``(*)``)
as bullet list marker, which isn't supported by Sphinx as proper
bullet. Replace it with just asterisk.
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
Documentation/networking/dns_resolver.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/networking/dns_resolver.rst b/Documentation/networking/dns_resolver.rst
index c0364f7070af84..5cec37bedf9950 100644
--- a/Documentation/networking/dns_resolver.rst
+++ b/Documentation/networking/dns_resolver.rst
@@ -25,11 +25,11 @@ These routines must be supported by userspace tools dns.upcall, cifs.upcall and
request-key. It is under development and does not yet provide the full feature
set. The features it does support include:
- (*) Implements the dns_resolver key_type to contact userspace.
+ * Implements the dns_resolver key_type to contact userspace.
It does not yet support the following AFS features:
- (*) Dns query support for AFSDB resource record.
+ * DNS query support for AFSDB resource record.
This code is extracted from the CIFS filesystem.
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH net-next v2 2/3] net: dns_resolver: Move dns_query() explanation out of code block
2025-09-24 2:06 [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup Bagas Sanjaya
2025-09-24 2:06 ` [PATCH net-next v2 1/3] net: dns_resolver: Use reST bullet list for features list Bagas Sanjaya
@ 2025-09-24 2:06 ` Bagas Sanjaya
2025-09-25 9:09 ` Simon Horman
2025-09-24 2:06 ` [PATCH net-next v2 3/3] net: dns_resolver: Fix request-key cross-reference Bagas Sanjaya
2025-09-26 22:30 ` [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup patchwork-bot+netdevbpf
3 siblings, 1 reply; 6+ messages in thread
From: Bagas Sanjaya @ 2025-09-24 2:06 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Documentation, Linux Networking
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Jonathan Corbet, Mauro Carvalho Chehab, Kees Cook,
Bagas Sanjaya
Documentation for dns_query() is placed in the function's literal code
block snippet instead. Move it out of there.
Fixes: 9dfe1361261b ("docs: networking: convert dns_resolver.txt to ReST")
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
Documentation/networking/dns_resolver.rst | 44 +++++++++++------------
1 file changed, 21 insertions(+), 23 deletions(-)
diff --git a/Documentation/networking/dns_resolver.rst b/Documentation/networking/dns_resolver.rst
index 5cec37bedf9950..fbbd2c4635cbd5 100644
--- a/Documentation/networking/dns_resolver.rst
+++ b/Documentation/networking/dns_resolver.rst
@@ -64,44 +64,42 @@ before the more general line given above as the first match is the one taken::
Usage
=====
-To make use of this facility, one of the following functions that are
-implemented in the module can be called after doing::
+To make use of this facility, first ``dns_resolver.h`` must be included::
#include <linux/dns_resolver.h>
- ::
+Then queries may be made by calling::
int dns_query(const char *type, const char *name, size_t namelen,
const char *options, char **_result, time_t *_expiry);
- This is the basic access function. It looks for a cached DNS query and if
- it doesn't find it, it upcalls to userspace to make a new DNS query, which
- may then be cached. The key description is constructed as a string of the
- form::
+This is the basic access function. It looks for a cached DNS query and if
+it doesn't find it, it upcalls to userspace to make a new DNS query, which
+may then be cached. The key description is constructed as a string of the
+form::
[<type>:]<name>
- where <type> optionally specifies the particular upcall program to invoke,
- and thus the type of query to do, and <name> specifies the string to be
- looked up. The default query type is a straight hostname to IP address
- set lookup.
+where <type> optionally specifies the particular upcall program to invoke,
+and thus the type of query, and <name> specifies the string to be looked up.
+The default query type is a straight hostname to IP address set lookup.
- The name parameter is not required to be a NUL-terminated string, and its
- length should be given by the namelen argument.
+The name parameter is not required to be a NUL-terminated string, and its
+length should be given by the namelen argument.
- The options parameter may be NULL or it may be a set of options
- appropriate to the query type.
+The options parameter may be NULL or it may be a set of options
+appropriate to the query type.
- The return value is a string appropriate to the query type. For instance,
- for the default query type it is just a list of comma-separated IPv4 and
- IPv6 addresses. The caller must free the result.
+The return value is a string appropriate to the query type. For instance,
+for the default query type it is just a list of comma-separated IPv4 and
+IPv6 addresses. The caller must free the result.
- The length of the result string is returned on success, and a negative
- error code is returned otherwise. -EKEYREJECTED will be returned if the
- DNS lookup failed.
+The length of the result string is returned on success, and a negative
+error code is returned otherwise. -EKEYREJECTED will be returned if the
+DNS lookup failed.
- If _expiry is non-NULL, the expiry time (TTL) of the result will be
- returned also.
+If _expiry is non-NULL, the expiry time (TTL) of the result will be
+returned also.
The kernel maintains an internal keyring in which it caches looked up keys.
This can be cleared by any process that has the CAP_SYS_ADMIN capability by
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH net-next v2 2/3] net: dns_resolver: Move dns_query() explanation out of code block
2025-09-24 2:06 ` [PATCH net-next v2 2/3] net: dns_resolver: Move dns_query() explanation out of code block Bagas Sanjaya
@ 2025-09-25 9:09 ` Simon Horman
0 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2025-09-25 9:09 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: Linux Kernel Mailing List, Linux Documentation, Linux Networking,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Jonathan Corbet, Mauro Carvalho Chehab, Kees Cook
On Wed, Sep 24, 2025 at 09:06:24AM +0700, Bagas Sanjaya wrote:
> Documentation for dns_query() is placed in the function's literal code
> block snippet instead. Move it out of there.
>
> Fixes: 9dfe1361261b ("docs: networking: convert dns_resolver.txt to ReST")
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH net-next v2 3/3] net: dns_resolver: Fix request-key cross-reference
2025-09-24 2:06 [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup Bagas Sanjaya
2025-09-24 2:06 ` [PATCH net-next v2 1/3] net: dns_resolver: Use reST bullet list for features list Bagas Sanjaya
2025-09-24 2:06 ` [PATCH net-next v2 2/3] net: dns_resolver: Move dns_query() explanation out of code block Bagas Sanjaya
@ 2025-09-24 2:06 ` Bagas Sanjaya
2025-09-26 22:30 ` [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup patchwork-bot+netdevbpf
3 siblings, 0 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2025-09-24 2:06 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Documentation, Linux Networking
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Jonathan Corbet, Mauro Carvalho Chehab, Kees Cook,
Bagas Sanjaya
Link to "Key Request Service" docs uses file:// scheme instead due to
angled brackets markup. Fix it to proper cross-reference.
Fixes: 3db38ed76890 ("doc: ReSTify keys-request-key.txt")
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
Documentation/networking/dns_resolver.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/networking/dns_resolver.rst b/Documentation/networking/dns_resolver.rst
index fbbd2c4635cbd5..52f298834db67b 100644
--- a/Documentation/networking/dns_resolver.rst
+++ b/Documentation/networking/dns_resolver.rst
@@ -140,8 +140,8 @@ the key will be discarded and recreated when the data it holds has expired.
dns_query() returns a copy of the value attached to the key, or an error if
that is indicated instead.
-See <file:Documentation/security/keys/request-key.rst> for further
-information about request-key function.
+See Documentation/security/keys/request-key.rst for further information about
+request-key function.
Debugging
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup
2025-09-24 2:06 [PATCH net-next v2 0/3] dns_resolver docs formatting cleanup Bagas Sanjaya
` (2 preceding siblings ...)
2025-09-24 2:06 ` [PATCH net-next v2 3/3] net: dns_resolver: Fix request-key cross-reference Bagas Sanjaya
@ 2025-09-26 22:30 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-26 22:30 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: linux-kernel, linux-doc, netdev, davem, edumazet, kuba, pabeni,
horms, corbet, mchehab+huawei, kees
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 24 Sep 2025 09:06:22 +0700 you wrote:
> Hi,
>
> Here are reST cleanups for DNS Resolver Module documentation. The shortlog
> below should be self-explanatory.
>
> Enjoy!
>
> [...]
Here is the summary with links:
- [net-next,v2,1/3] net: dns_resolver: Use reST bullet list for features list
https://git.kernel.org/netdev/net-next/c/84a27b5a4ced
- [net-next,v2,2/3] net: dns_resolver: Move dns_query() explanation out of code block
https://git.kernel.org/netdev/net-next/c/1b1fe672337b
- [net-next,v2,3/3] net: dns_resolver: Fix request-key cross-reference
https://git.kernel.org/netdev/net-next/c/ffa8f0791955
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread