mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
uio: move docs for this disgraceful failed example to README
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#uio
|
||||
set -e
|
||||
modprobe uio_pci_generic
|
||||
# pci_min device
|
||||
echo '1234 11e9' > /sys/bus/pci/drivers/uio_pci_generic/new_id
|
||||
@@ -13,3 +14,4 @@ devmem "0x${base}" w 0x12345678
|
||||
devmem "0x$(($base + 4))" w 0x12345678
|
||||
devmem "0x${base}" w 0x12345678
|
||||
devmem "0x$(($base + 4))" w 0x12345678
|
||||
modprobe -r uio_pci_generic
|
||||
|
||||
Reference in New Issue
Block a user