mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Ralf Oehler <R.Oehler@GDAmbH.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: missing get_empty_inode()
Date: Fri, 9 May 2003 11:53:09 +0100	[thread overview]
Message-ID: <20030509115309.B18745@infradead.org> (raw)
In-Reply-To: <XFMail.20030509112703.R.Oehler@GDAmbH.com>; from R.Oehler@GDAmbH.com on Fri, May 09, 2003 at 11:27:03AM +0200

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.


      reply	other threads:[~2003-05-09 10:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-09  9:27 Ralf Oehler
2003-05-09 10:53 ` Christoph Hellwig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030509115309.B18745@infradead.org \
    --to=hch@infradead.org \
    --cc=R.Oehler@GDAmbH.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®