OpenVZ Forum


Home » Mailing lists » Devel » sysfs entries inside VE
sysfs entries inside VE [message #14375] Tue, 26 June 2007 14:34
Christian Kaiser2 is currently offline  Christian Kaiser2
Messages: 27
Registered: May 2007
Junior Member
Hi all,

I wanted to know how the sysfs inside a VE is managed. I had a look at the
init_ve_sysfs() in kernel/ve/vecalls.c but it is really hard for me to read
the code. Want I want to do is to have a copy of some necessary sysfs
entries of the host system that are used by libspe2 so that I can use
libspe2 inside a VE. Necessary for me are the directories including their
subdirectories and files of:

/sys/devices/system/cpu
/sys/devices/system/spu

I found this comment twice in the function I mentioned above "/* ick, this
is ugly, the things we go through to keep from showing up in sysfs...
*/"... so let me do another dirty hack!!

Mit freundlichen Grüßen / Best Regards
Christian Kaiser
--
IBM Deutschland Entwicklung GmbH
Open Systems Firmware Development
mail: ckaiser2@de.ibm.com

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
Previous Topic: Introduce new filesystem inside VE
Next Topic: [PATCH 1/2] containers: implement subsys->post_clone()
Goto Forum:
  


Current Time: Sun Aug 04 21:17:03 GMT 2024

Total time taken to generate the page: 0.03044 seconds