mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: ebiederm@xmission.com, cornelia.huck@de.ibm.com, greg@kroah.com,
	stern@rowland.harvard.edu, kay.sievers@vrfy.org,
	linux-kernel@vger.kernel.org, htejun@gmail.com
Subject: testing module and script for new sysfs interface
Date: Thu, 20 Sep 2007 17:46:10 +0900	[thread overview]
Message-ID: <20070920084610.GA10660@htj.dyndns.org> (raw)

[-- 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 --]

                 reply	other threads:[~2007-09-20  8:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070920084610.GA10660@htj.dyndns.org \
    --to=htejun@gmail.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=ebiederm@xmission.com \
    --cc=greg@kroah.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®