lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <6d6a94c50610312351g46224cdbr20f5640689ec7109@mail.gmail.com>
Date:	Wed, 1 Nov 2006 15:51:01 +0800
From:	Aubrey <aubreylee@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: How to add a device file to sysfs?

Hi all,

When a misc device file is registered, there are two files under my
own class directory:

/sys --> class --> misc --> myprog --> dev
                                                  --> uevent
                                                  --> myprog_show (to be added)

Now, my question is, is it possbile to add the third file
"myprog_show" under "myprog" directory without modify any common code?

I've read the doc under linux-2.6.x/Documentation, I can add it to
some other directory under /sys, but not found a way to add it to my own
directory.

Thanks for any help.
-Aubrey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ