lkml.org 
[lkml]   [1999]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] device file support for /proc filesystem
On Wed, 17 Nov 1999, Joerg Stroettchen wrote:

> hello,
>
> i just tried to compile todays alsa-cvs with a 2.3.28-K2-kernel.
> when compiling info.c from the driver-section compilation stopped at
> about line 935 and 1039, where two references to the old
> fill-inode-procedure were found. After exchanging these lines with
> p->owner etc..., the drivers compiled fine and were installed.
> Nevertheless, running alsasound "start" recognized my card (ens1370)
> correctly, but alsactl failed with "MIXER open error".
>
> What to do???

Nothing. Kernels from 2.3.27 are not supported yet. The new /proc code is
not able to create devices inside /proc directory :-((

It would be good to include the following patch (or similar) into kernel.
Please, let me know, if someone will do it, because I'm not checking 2.3
kernel changes every day.

Jaroslav

--- linux.2.3/include/linux/proc_fs.h.old Sat Nov 13 17:54:16 1999
+++ linux.2.3/include/linux/proc_fs.h Sat Nov 13 17:56:00 1999
@@ -59,6 +59,7 @@
unsigned short low_ino;
unsigned short namelen;
const char *name;
+ kdev_t rdev;
mode_t mode;
nlink_t nlink;
uid_t uid;
--- linux.2.3/fs/proc/inode.c.old Sat Nov 13 17:57:32 1999
+++ linux.2.3/fs/proc/inode.c Sat Nov 13 18:06:52 1999
@@ -167,6 +167,8 @@
inode->u.generic_ip = (void *) de;
if (de) {
if (de->mode) {
+ if (de->mode & (S_IFBLK|S_IFCHR))
+ inode->i_rdev = de->rdev;
inode->i_mode = de->mode;
inode->i_uid = de->uid;
inode->i_gid = de->gid;
-----
Jaroslav Kysela <perex@suse.cz>
SuSE Linux http://www.suse.com
ALSA project http://www.alsa-project.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.463 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site