Re: missing get_empty_inode()

Christoph Hellwig (hch@infradead.org)
Fri, 9 May 2003 11:53:09 +0100


On Fri, May 09, 2003 at 11:27:03AM +0200, Ralf Oehler wrote:
> Hello, list
>
> Currently I'm porting my driver sources from 2.4.18 to 2.4.20 an I noticed
> the absence of get_empty_inode().
> I didn't find an exported function to get a sb-less inode.

There is none. Inodes must have superblocks associated to them.

> My goal is to open sd- and an sg- devices in order to do
> ioctl(send_scsi_cmd) on them. As my driver acts as a block device driver
> (layered pseudo block device), there is no sb assigned to it.
>
> What is, according to the current philosophy, the cleanest code-sniplet to
>
> - open
> - ioctl
> - close
>
> an sd-device ?
> an sg-device ?

open it from userspace.

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