* testing module and script for new sysfs interface
@ 2007-09-20 8:46 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2007-09-20 8:46 UTC (permalink / raw)
To: ebiederm, cornelia.huck, greg, stern, kay.sievers, linux-kernel, htejun
[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]
Hello,
The tarball attached to this mail contains module source and scripts
to test new sysfs interface.
* sysfs-interpreter : kernel module to call sysfs interface functions
as directed via debugfs file /sys/kernel/debug/sysfs-interpreter.
It keeps internal list which maps path name to sysfs_dirent pointer.
Note that userland is perfectly capable of causing oops using this
module. Other than usage of pathnaem instead of pointer, most
functionalities are exported verbatim.
All test nodes are created under /sys/test which is created on
module load and removed on unload.
* si-runcmd.pl : perl script to execute sysfs commands using
sysfs-interpreter. It reads from stdin line-by-line and executes
them. For example "echo remove test-dir | si-rumcmd.pl" removes
/sys/test/test-dir.
* si files : these files are to be fed to si-runcmd.pl and test
certain features of sysfs. For batch-error.si to work, you need to
modify sysfs_new_dirent() such that it fails allocation if mode
contains invalid bits.
Thanks.
--
tejun
[-- Attachment #2: sysfs-interpreter.tar.bz2 --]
[-- Type: application/octet-stream, Size: 5432 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-20 8:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-20 8:46 testing module and script for new sysfs interface Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®