Skip to contentSkip to conversation

xen: update missing ioctl magic numers documentation

PATCH Superseded Randy Dunlap 2 participants 3 messages Jan 30, 2022 – Jan 31, 2022 Documentation

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Randy Dunlap

author reviewer
#0 lore raw

PATCH 1/1 xen: update missing ioctl magic numers documentation

Add missing ioctl "magic numbers" for various Xen interfaces (xenbus_dev.h, gntalloc.h, gntdev.h, and privcmd.h).

Cc Boris Ostrovsky <[email protected]>
Cc Juergen Gross <[email protected]>
Cc Stefano Stabellini <[email protected]>
---
 Documentation/userspace-api/ioctl/ioctl-number.rst |    3 +++
 1 file changed, 3 insertions(+)
Documentation/userspace-api/ioctl/ioctl-number.rst +3 -0
@@ -115,6 +115,7 @@ Code  Seq#    Include File
 'B'   00-1F  linux/cciss_ioctl.h                                     conflict!
 'B'   00-0F  include/linux/pmu.h                                     conflict!
 'B'   C0-FF  advanced bbus                                           <mailto:[email protected]>
+'B'   00-0F  xen/xenbus_dev.h                                        conflict!
 'C'   all    linux/soundcard.h                                       conflict!
 'C'   01-2F  linux/capi.h                                            conflict!
 'C'   F0-FF  drivers/net/wan/cosa.h                                  conflict!
@@ -134,6 +135,7 @@ Code  Seq#    Include File
 'F'   80-8F  linux/arcfb.h                                           conflict!
 'F'   DD     video/sstfb.h                                           conflict!
 'G'   00-3F  drivers/misc/sgi-gru/grulib.h                           conflict!
+'E'   00-0F  xen/gntalloc.h, xen/gntdev.h                            conflict!
 'H'   00-7F  linux/hiddev.h                                          conflict!
 'H'   00-0F  linux/hidraw.h                                          conflict!
 'H'   01     linux/mei.h                                             conflict!
@@ -176,6 +178,7 @@ Code  Seq#    Include File
 'P'   60-6F  sound/sscape_ioctl.h                                    conflict!
 'P'   00-0F  drivers/usb/class/usblp.c                               conflict!
 'P'   01-09  drivers/misc/pci_endpoint_test.c                        conflict!
+'P'   00-0F  xen/privcmd.h                                           conflict!
 'Q'   all    linux/soundcard.h
 'R'   00-1F  linux/random.h                                          conflict!
 'R'   01     linux/rfkill.h                                          conflict!
#1 lore raw
Quoted 15 lines · Randy Dunlap

Add missing ioctl "magic numbers" for various Xen interfaces (xenbus_dev.h, gntalloc.h, gntdev.h, and privcmd.h).

Cc Boris Ostrovsky <[email protected]>
Cc Juergen Gross <[email protected]>
Cc Stefano Stabellini <[email protected]>
---
  Documentation/userspace-api/ioctl/ioctl-number.rst |    3 +++
  1 file changed, 3 insertions(+)

Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File · line 118

Quoted 4 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1 -0
@@ -115,6 +115,7 @@ Code  Seq#    Include File
  'B'   00-1F  linux/cciss_ioctl.h                                     conflict!
  'B'   00-0F  include/linux/pmu.h                                     conflict!
  'B'   C0-FF  advanced bbus                                           <mailto:[email protected]>
+'B'   00-0F  xen/xenbus_dev.h                                        conflict!

Hmm, shouldn't xenbus_dev.h be moved to include/uapi/xen ?

Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File · line 138

Quoted 8 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1 -0
  'C'   all    linux/soundcard.h                                       conflict!
  'C'   01-2F  linux/capi.h                                            conflict!
  'C'   F0-FF  drivers/net/wan/cosa.h                                  conflict!
@@ -134,6 +135,7 @@ Code  Seq#    Include File
  'F'   80-8F  linux/arcfb.h                                           conflict!
  'F'   DD     video/sstfb.h                                           conflict!
  'G'   00-3F  drivers/misc/sgi-gru/grulib.h                           conflict!
+'E'   00-0F  xen/gntalloc.h, xen/gntdev.h                            conflict!

Should be 'G' IMO.

Documentation/userspace-api/ioctl/ioctl-number.rst Code Seq# Include File · line 184

Quoted 12 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +1 -0
  'H'   00-7F  linux/hiddev.h                                          conflict!
  'H'   00-0F  linux/hidraw.h                                          conflict!
  'H'   01     linux/mei.h                                             conflict!
@@ -176,6 +178,7 @@ Code  Seq#    Include File
  'P'   60-6F  sound/sscape_ioctl.h                                    conflict!
  'P'   00-0F  drivers/usb/class/usblp.c                               conflict!
  'P'   01-09  drivers/misc/pci_endpoint_test.c                        conflict!
+'P'   00-0F  xen/privcmd.h                                           conflict!
  'Q'   all    linux/soundcard.h
  'R'   00-1F  linux/random.h                                          conflict!
  'R'   01     linux/rfkill.h                                          conflict!

Juergen

author reviewer
#2 lore raw

Hi--

Quoted 13 lines · Juergen Gross
Quoted 12 lines · Randy Dunlap

Add missing ioctl "magic numbers" for various Xen interfaces (xenbus_dev.h, gntalloc.h, gntdev.h, and privcmd.h).

Cc Boris Ostrovsky <[email protected]>
Cc Juergen Gross <[email protected]>
Cc Stefano Stabellini <[email protected]>

---
  Documentation/userspace-api/ioctl/ioctl-number.rst |    3 +++

  1 file changed, 3 insertions(+)
Quoted 9 lines
Quoted 7 lines
Documentation/userspace-api/ioctl/ioctl-number.rst +0 -0
@@ -115,6 +115,7 @@ Code  Seq#    Include File

  'B'   00-1F  linux/cciss_ioctl.h                                     conflict!
  'B'   00-0F  include/linux/pmu.h                                     conflict!
  'B'   C0-FF  advanced bbus                                           <mailto:[email protected]> +'B'   00-0F  xen/xenbus_dev.h                                        conflict!

Hmm, shouldn't xenbus_dev.h be moved to include/uapi/xen ?

Probably. That should be done in a different patch and probably/preferably done using git (which I am not using). So if someone else could take care of that, that would be good.

Quoted 11 lines
Quoted 9 lines

  'C'   all    linux/soundcard.h                                       conflict! 'C'   01-2F  linux/capi.h                                            conflict! 'C'   F0-FF  drivers/net/wan/cosa.h                                  conflict!

Documentation/userspace-api/ioctl/ioctl-number.rst +0 -0
@@ -134,6 +135,7 @@ Code  Seq#    Include File

  'F'   80-8F  linux/arcfb.h                                           conflict! 'F'   DD     video/sstfb.h                                           conflict! 'G'   00-3F  drivers/misc/sgi-gru/grulib.h                           conflict! +'E'   00-0F  xen/gntalloc.h, xen/gntdev.h                            conflict!

Should be 'G' IMO.

Indeed it should. I'll send a v2.

Quoted 16 lines
Quoted 5 lines

  'H'   00-7F  linux/hiddev.h                                          conflict! 'H'   00-0F  linux/hidraw.h                                          conflict! 'H'   01     linux/mei.h                                             conflict!

Documentation/userspace-api/ioctl/ioctl-number.rst +0 -0
@@ -176,6 +178,7 @@ Code  Seq#    Include File
Quoted 8 lines

  'P'   60-6F  sound/sscape_ioctl.h                                    conflict! 'P'   00-0F  drivers/usb/class/usblp.c                               conflict! 'P'   01-09  drivers/misc/pci_endpoint_test.c                        conflict! +'P'   00-0F  xen/privcmd.h                                           conflict! 'Q'   all    linux/soundcard.h
  'R'   00-1F  linux/random.h                                          conflict! 'R'   01     linux/rfkill.h                                          conflict!

Juergen

thanks.

Signature · 1 line
~Randy