Page MenuHomeFreeBSD

linuxkpi: Define `seq_has_overflowed()` and `single_open_size()`
ClosedPublic

Authored by dumbbell on Mar 13 2023, 2:58 PM.
Tags
None
Referenced Files
F102757117: D39056.diff
Sat, Nov 16, 6:02 PM
Unknown Object (File)
Thu, Nov 14, 11:49 AM
Unknown Object (File)
Oct 13 2024, 10:44 PM
Unknown Object (File)
Oct 3 2024, 5:36 AM
Unknown Object (File)
Sep 23 2024, 3:42 PM
Unknown Object (File)
Sep 23 2024, 12:31 AM
Unknown Object (File)
Sep 22 2024, 7:28 PM
Unknown Object (File)
Sep 20 2024, 11:01 PM

Details

Summary

This required non-trivial changes to linux_seq_file.c to manage a new (struct seq_file)->size field. This field is read directly by DRM drivers, so we can't alias it to a call to sbuf_len(9).

single_open_size() also depended on the ability to allocate the sbuf with a specified size instead of relying on sbuf_new_auto().

This is part of the update of the DRM drivers to Linux 5.17.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable