Benign freebsd Download

drm_sysctl.c

Code formats a zero-padded integerSysctl handler function signature
SHA-2561f68d478eae0849abd0ac92c203b23f2a9f095b91d99a95379045ce7b91f3c7b

Evidence

English function-word token "the" lines 5–8
5:39… of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * th …
English function-word token "for" lines 17–19
17:40… O THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * ERIC ANHOLT BE LIABLE FOR ANY C …
Sysctl handler function signature lines 20–38
20:42… RWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#include <sys/cdefs.h>
25/** @file drm_sysctl.c
26 * Implementation of various sysctls for controlling DRM behavior and reporting
27 * debug information.
28 */
29
30#include <dev/drm2/drmP.h>
31#include <dev/drm2/drm.h>
32
33#include <sys/sysctl.h>
34
35static int drm_name_info DRM_SYSCTL_HANDLER_ARGS;
36static int drm_vm_info DRM_SYSCTL_HANDLER_ARGS;
37static int drm_clients_info DRM_SYSCTL_HANDLER_ARGS;
38static int drm_b …
C declares a character or byte buffer lines 51–62
51:73… st[0]))
52
53struct drm_sysctl_info {
54 struct sysctl_ctx_list ctx;
55 char name[2];
56};
57
⋯5 lines
Code formats a zero-padded integer lines 253–262
253:7… no = "no";
254 else
255 yesno = "yes";
256
257 DRM_SYSCTL_PRINT(
258 "%4d 0x%016llx 0x%08lx %4.4s 0x%02x 0x%016lx %s\n",
259 i, (unsigned long long)map->offset, map->size, type,
260 map->flags, (unsigned long)map->handle, yesno);
261 }
262 SYSCTL_OUT(req, "", 1) …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.