Re: Linux 2.3.99pre4-5-ac1

From: Michael Harnois (mdharnois@home.com)
Date: Mon Apr 10 2000 - 14:52:54 EST


On Mon, 10 Apr 2000 15:46:54 -0400 (EDT), Alexander Viro <viro@math.psu.edu> said:

> Where would _audio driver_ (of all things) use that stuff?

static struct dentry *snd_info_card_followlink(struct dentry *dentry,
                                               struct dentry *base,
                                               unsigned int follow)
{
        snd_card_t *card;
        char tmp[16];

        down(&info_mutex);
        card = snd_info_find_card(dentry->d_inode->i_ino);
        if (card == NULL || card->proc_dir == NULL) {
                up(&info_mutex);
                return NULL;
        }
        strcpy(tmp, card->id);
        up(&info_mutex);
        return lookup_dentry(tmp, base, follow);
}

-- 
Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA 
mdharnois@home.com                      aa0bt@aa0bt.ampr.org 
 Paranoids are people, too; they have their own problems. 
 It's easy to criticize, but if everybody hated you, 
 you'd be paranoid too. -- D. J. Hicks

- 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/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:14 EST