Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\pci-dma.c Create Date:2022-07-28 07:44:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:See <Documentation/x86/x86_64/boot-options.rst> for the iommu kernel* parameter documentation.

Proto:static __init int iommu_setup(char *p)

Type:int

Parameter:

TypeParameterName
char *p
63  iommu_merge = 1
65  If Not p Then Return -EINVAL
68  When p cycle
69  If Not strncmp(p, "off", 3) Then no_iommu = 1
72  If Not strncmp(p, "force", 5) Then force_iommu = 1
74  If Not strncmp(p, "noforce", 7) Then
75  iommu_merge = 0
76  force_iommu = 0
79  If Not strncmp(p, "biomerge", 8) Then
80  iommu_merge = 1
81  force_iommu = 1
83  If Not strncmp(p, "panic", 5) Then panic_on_overflow = 1
85  If Not strncmp(p, "nopanic", 7) Then panic_on_overflow = 0
87  If Not strncmp(p, "merge", 5) Then
88  iommu_merge = 1
89  force_iommu = 1
91  If Not strncmp(p, "nomerge", 7) Then iommu_merge = 0
93  If Not strncmp(p, "forcesac", 8) Then pr_warn("forcesac option ignored.\n")
95  If Not strncmp(p, "allowdac", 8) Then pr_warn("allowdac option ignored.\n")
97  If Not strncmp(p, "nodac", 5) Then pr_warn("nodac option ignored.\n")
99  If Not strncmp(p, "usedac", 6) Then
100  disable_dac_quirk = true
101  Return 1
107  If Not strncmp(p, "pt", 2) Then iommu_set_default_passthrough(true)
109  If Not strncmp(p, "nopt", 4) Then iommu_set_default_translated(true)
112  gart_parse_options(p)
114  p += strcspn - Calculate the length of the initial substring of @s which does not contain letters in @reject*@s: The string to be searched*@reject: The string to avoid
115  If p == ',' Then ++p
118  Return 0