Re: Kernel BUG at fs/sysfs/file.c:552

From: Marcus Nutzinger
Date: Sat Apr 12 2008 - 11:12:23 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> With the nvidia driver, you're not going to get much help on this list
> :(

Well I don't like the driver either but the problem is really totally
unrealted I think..

> Hm, did you create two files with the same name?

No I only wanted to create one file on the first try, just to test the
sysfs interface. It should only give an attribute under /sys/devices,
called "writer_pid", which prints 0 or an actual PID of a process
writing to my virtual device.

I've just tried some other stuff just this minute and now it seems to
work, I get a directory under /sys/devices! Unfortunately I can't say
what the real problem was and why this kernel bug occured...

But I've another question: This directory doesn't only contain the
attribute ("writer_pid") which I've created in the code, but also a
subdirectory "power" and another attribute "uevent".. Could you explain
to me what's this all about? Are these just standard attributes which
are added to every device which registers there? (Sounds obviousely
because other directories under my /sys/devices tree contain them too..).

> Care to post your code?

I've uploaded it to http://www.nuuz.at/temp/vdd.c. I didn't want to post
the whole code here, I hope that's ok!

thanks for replying,
regards
Marcus Nutzinger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIANFMeEFjZ1Jaui4RAlbfAJ9XzbidhogUUMexqhuc/YPMzIaAjgCdGEtA
0NtTj7FkOfpaYdXQZklTlf0=
=FmIo
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/