login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
16
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dave Hansen
Subject:
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
Date: Tuesday, September 16, 2008 - 8:54 am
On Sat, 2008-09-13 at 19:06 -0400, Oren Laadan wrote:
quoted text
> > +static int > +cr_write_fd_ent(struct cr_ctx *ctx, struct files_struct *files, int > fd) > +{ > + struct cr_hdr h; > + struct cr_hdr_fd_ent *hh = cr_hbuf_get(ctx, sizeof(*hh)); > + struct file *file = NULL; > + struct fdtable *fdt; > + int coe, objref, new, ret; > + > + rcu_read_lock(); > + fdt = files_fdtable(files); > + file = fcheck_files(files, fd); > + if (file) { > + coe = FD_ISSET(fd, fdt->close_on_exec); > + get_file(file); > + } > + rcu_read_unlock(); > + > + /* sanity check (although this shouldn't happen) */ > + if (!file) > + return -EBADF; > + > + new = cr_obj_add_ptr(ctx, (void *) file, &objref, CR_OBJ_FILE, 0);
Dude, you don't need to cast to void*. -- Dave --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC v5][PATCH 0/9] Kernel based checkpoint/restart
, Oren Laadan
, (Sat Sep 13, 4:05 pm)
[RFC v5][PATCH 1/8] Create syscalls: sys_checkpoint, sys_r ...
, Oren Laadan
, (Sat Sep 13, 4:05 pm)
[RFC v5][PATCH 2/8] General infrastructure for checkpoint ...
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 3/8] x86 support for checkpoint/restart
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 4/8] Dump memory address space
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 5/8] Restore memory address space
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 6/8] Checkpoint/restart: initial documentation
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 7/8] Infrastructure for shared objects
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 8/8] Dump open file descriptors
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 9/9] Restore open file descriprtors
, Oren Laadan
, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 9/9] Restore open file descriprtors
, Oren Laadan
, (Sat Sep 13, 4:22 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
, Bastian Blank
, (Sun Sep 14, 2:51 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
, Oren Laadan
, (Sun Sep 14, 8:40 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Dave Hansen
, (Mon Sep 15, 10:54 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Dave Hansen
, (Mon Sep 15, 10:59 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Dave Hansen
, (Mon Sep 15, 11:00 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Dave Hansen
, (Mon Sep 15, 11:02 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Oren Laadan
, (Mon Sep 15, 11:52 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Dave Hansen
, (Mon Sep 15, 12:13 pm)
Re: [RFC v5][PATCH 5/8] Restore memory address space
, Dave Hansen
, (Mon Sep 15, 12:14 pm)
Re: [RFC v5][PATCH 6/8] Checkpoint/restart: initial docume ...
, Serge E. Hallyn
, (Mon Sep 15, 1:26 pm)
Re: [RFC v5][PATCH 1/8] Create syscalls: sys_checkpoint, s ...
, Serge E. Hallyn
, (Mon Sep 15, 1:28 pm)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Serge E. Hallyn
, (Mon Sep 15, 2:15 pm)
Re: [RFC v5][PATCH 3/8] x86 support for checkpoint/restart
, Serge E. Hallyn
, (Mon Sep 15, 2:31 pm)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ...
, Bastian Blank
, (Tue Sep 16, 5:27 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
, Dave Hansen
, (Tue Sep 16, 8:54 am)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
, Dave Hansen
, (Tue Sep 16, 9:48 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
, Dave Hansen
, (Tue Sep 16, 9:55 am)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
, Serge E. Hallyn
, (Tue Sep 16, 1:54 pm)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
, Oren Laadan
, (Tue Sep 16, 2:36 pm)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
, Serge E. Hallyn
, (Tue Sep 16, 3:09 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
, Serge E. Hallyn
, (Tue Sep 16, 4:03 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors
, Serge E. Hallyn
, (Tue Sep 16, 4:08 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors
, Oren Laadan
, (Tue Sep 16, 5:11 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors
, Serge E. Hallyn
, (Tue Sep 16, 9:56 pm)
Re: [RFC v5][PATCH 6/8] Checkpoint/restart: initial docume ...
, MinChan Kim
, (Tue Sep 16, 11:23 pm)
Re: [RFC v5][PATCH 4/8] Dump memory address space
, MinChan Kim
, (Tue Sep 16, 11:48 pm)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
, MinChan Kim
, (Wed Sep 17, 12:31 am)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart
, Serge E. Hallyn
, (Wed Sep 17, 7:16 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors
, Dave Hansen
, (Mon Sep 22, 8:31 am)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors
, Dave Hansen
, (Mon Sep 22, 9:02 am)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart
, Serge E. Hallyn
, (Wed Sep 24, 2:42 pm)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart
, Cedric Le Goater
, (Thu Sep 25, 5:58 am)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart
, Oren Laadan
, (Wed Oct 8, 2:59 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate