Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 27 Oct 2001 15:02:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 27 Oct 2001 15:02:25 -0400 Received: from leibniz.math.psu.edu ([146.186.130.2]:48005 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Sat, 27 Oct 2001 15:02:14 -0400 Date: Sat, 27 Oct 2001 15:02:46 -0400 (EDT) From: Alexander Viro To: linux-kernel@vger.kernel.org cc: Linus Torvalds , Richard Gooch Subject: more devfs fun In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org BTW, what the hell is that? /* * hwgraph_bdevsw_get - returns the fops of the given devfs entry. */ struct file_operations * hwgraph_bdevsw_get(devfs_handle_t de) { return(devfs_get_ops(de)); } It's arch/ia64/sn/io/hcl.c. The funny thing being, the thing you will get from devfs_get_ops() will _not_ be struct file_operations *. And that's aside of the fact that any use of that function is very likely to be racy as hell. Sigh... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/