shmem.h
来自「spice中支持多层次元件模型仿真的可单独运行的插件源码」· C头文件 代码 · 共 49 行
H
49 行
/* $Header: /home/harrison/c/tcgmsg/ipcv4.0/RCS/shmem.h,v 1.1 91/12/06 17:27:20 harrison Exp Locker: harrison $ *//* Header file which declares stubs for the shared memory interface. Note that the input arguments switch between integers and pointers to integers depending on if they are modified on return.*//* Create a shared region of at least size bytes, returning the actual size, the id associated with the region. The return vaue is a pointer to the the region. Any error is a hard fail. (char *) CreateSharedRegion((long *) id, (long *) size)*/extern char *CreateSharedRegion();/* Detach a process from a shared memory region. 0 is returned on success, -1 for failure. id, size, and addr much match exactly those items returned from CreateSharedRegion long DetachSharedRegion((long) id, (long) size, (char *) addr)*/extern long DetachSharedRegion();/* Delete a shared region from the system. This has to be done on the SUN to remove it from the system. On the Alliant the shared region disappears when the last process dies or detaches. Returns 0 on success, -1 on error. long DeleteSharedRegion( (long) id)*/extern long DeleteSharedRegion();/* Attach to a shared memory region of known id and size. Returns the address of the mapped memory. Size must exactly match the size returned from CreateSharedRegion (which in turn is the requested size rounded up to a multiple of 4096). Any error is a hard fail. (char *) AttachSharedRegion( (long) id, (long) size))*/extern char *AttachSharedRegion();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?