Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: filesystems: Update code snippets in autofs.rst

Some of the struct definitions now have an autofs packet header.
Reflect these changes by adding a definition of this header and
place it wherever suitable.

Signed-off-by: Jaskaran Singh <jaskaransingh7654321@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Jaskaran Singh and committed by
Jonathan Corbet
c11565e8 f11f2a3c

+9 -4
+9 -4
Documentation/filesystems/autofs.rst
··· 322 322 For version 5, the format of the message is:: 323 323 324 324 struct autofs_v5_packet { 325 - int proto_version; /* Protocol version */ 326 - int type; /* Type of packet */ 325 + struct autofs_packet_hdr hdr; 327 326 autofs_wqt_t wait_queue_token; 328 327 __u32 dev; 329 328 __u64 ino; ··· 333 334 __u32 len; 334 335 char name[NAME_MAX+1]; 335 336 }; 337 + 338 + And the format of the header is:: 339 + 340 + struct autofs_packet_hdr { 341 + int proto_version; /* Protocol version */ 342 + int type; /* Type of packet */ 343 + }; 336 344 337 345 where the type is one of :: 338 346 ··· 401 395 anything suitable to expire. A pointer to a packet:: 402 396 403 397 struct autofs_packet_expire_multi { 404 - int proto_version; /* Protocol version */ 405 - int type; /* Type of packet */ 398 + struct autofs_packet_hdr hdr; 406 399 autofs_wqt_t wait_queue_token; 407 400 int len; 408 401 char name[NAME_MAX+1];