Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 6 Nov 2001 00:07:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 6 Nov 2001 00:06:53 -0500 Received: from vindaloo.ras.ucalgary.ca ([136.159.55.21]:23996 "EHLO vindaloo.ras.ucalgary.ca") by vger.kernel.org with ESMTP id ; Tue, 6 Nov 2001 00:06:47 -0500 Date: Mon, 5 Nov 2001 22:06:22 -0700 Message-Id: <200111060506.fA656Mq18958@vindaloo.ras.ucalgary.ca> From: Richard Gooch To: Alexander Viro Cc: linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: more devfs fun In-Reply-To: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Alexander Viro writes: > 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... Sigh indeed. I didn't write that code. Looks like someone is (ab)using the devfs API. Contact the maintainer of that code for insight. Regards, Richard.... Permanent: rgooch@atnf.csiro.au Current: rgooch@ras.ucalgary.ca - 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/