[lkml]   [2001]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: more devfs fun
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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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