Print this page
OS-5223 removed shm segment is no longer available
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ipc_impl.h
          +++ new/usr/src/uts/common/sys/ipc_impl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2016, Joyent, Inc.
  23   24   */
  24   25  
  25   26  #ifndef _IPC_IMPL_H
  26   27  #define _IPC_IMPL_H
  27   28  
  28   29  #include <sys/types.h>
  29   30  #include <sys/ipc.h>
  30   31  #include <sys/mutex.h>
  31   32  #include <sys/ipc_rctl.h>
  32   33  #include <sys/project.h>
↓ open down ↓ 186 lines elided ↑ open up ↑
 219  220  
 220  221  void ipc_hold(ipc_service_t *, kipc_perm_t *);
 221  222  void ipc_rele(ipc_service_t *, kipc_perm_t *);
 222  223  void ipc_rele_locked(ipc_service_t *, kipc_perm_t *);
 223  224  
 224  225  int ipc_get(ipc_service_t *, key_t, int, kipc_perm_t **, kmutex_t **);
 225  226  int ipc_commit_begin(ipc_service_t *, key_t, int, kipc_perm_t *);
 226  227  kmutex_t *ipc_commit_end(ipc_service_t *, kipc_perm_t *);
 227  228  void ipc_cleanup(ipc_service_t *, kipc_perm_t *);
 228  229  
      230 +void ipc_rmsvc(ipc_service_t *, kipc_perm_t *);
 229  231  int ipc_rmid(ipc_service_t *, int, cred_t *);
 230  232  int ipc_ids(ipc_service_t *, int *, uint_t, uint_t *);
 231  233  
 232  234  void ipc_remove_zone(ipc_service_t *, zoneid_t);
 233  235  
 234  236  #else   /* _KERNEL */
 235  237  
 236  238  int msgctl64(int, int, struct msqid_ds64 *);
 237  239  int semctl64(int, int, int, ...);
 238  240  int shmctl64(int, int, struct shmid_ds64 *);
 239  241  
 240  242  #endif  /* _KERNEL */
 241  243  
 242  244  
 243  245  #ifdef  __cplusplus
 244  246  }
 245  247  #endif
 246  248  
 247  249  #endif  /* _IPC_IMPL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX