linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: leslie.polzer@gmx.net
To: linux-c-programming@vger.kernel.org
Subject: Handling ioctl() argp memory
Date: Sun, 4 Mar 2007 17:48:44 +0100	[thread overview]
Message-ID: <20070304164844.GA7231@wintermute.farpoint> (raw)

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]


Hello folks,

  I'm passing an array to a ioctl.
  ioctl(2) says it needs to point at memory, so I'm allocating it.
  Do I need to, or rather, am I allowed to free the memory afterwards?

  It seems I'm getting segfaults when I free the memory...

    Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2007-03-04 16:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-04 16:48 leslie.polzer [this message]
2007-03-04 16:52 ` Handling ioctl() argp memory Markus Rechberger
2007-03-04 17:04   ` leslie.polzer
2007-03-04 18:21     ` Markus Rechberger
2007-03-05  1:54 ` Glynn Clements
2007-03-05  5:23   ` leslie.polzer
2007-03-05  6:26     ` Glynn Clements
2007-03-05 10:49     ` Markus Rechberger

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=20070304164844.GA7231@wintermute.farpoint \
    --to=leslie.polzer@gmx.net \
    --cc=linux-c-programming@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;
as well as URLs for NNTP newsgroup(s).