Home
last modified time | relevance | path

Searched refs:shmp (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/dports/math/plplot/plplot-5.15.0/cmake/test_linux_ipc/
H A Dpshm_write.c33 shmbuf *shmp; in main() local
57 if (shmp == MAP_FAILED) in main()
70 if (sem_init(&shmp->rsem, 1, 0) == -1) in main()
77 if (sem_init(&shmp->wsem, 1, 1) == -1) in main()
83 for (xfrs = 0, bytes = 0; ; xfrs++, bytes += shmp->cnt) { in main()
85 if(sem_wait(&shmp->wsem) == -1) in main()
91 shmp->cnt = read(STDIN_FILENO, shmp->buf, BUF_SIZE); in main()
92 if(shmp->cnt == -1) in main()
99 if(sem_post(&shmp->rsem) == -1) in main()
106 if (shmp->cnt == 0) in main()
[all …]
H A Dpshm_read.c33 shmbuf *shmp; in main() local
50 shmp = mmap(NULL, sizeof(shmbuf), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
51 if (shmp == MAP_FAILED) in main()
64 for (xfrs = 0, bytes = 0; ; xfrs++, bytes += shmp->cnt) in main()
67 if(sem_wait(&shmp->rsem) == -1) in main()
74 if(shmp->cnt == 0) in main()
77 write(STDOUT_FILENO, shmp->buf, shmp->cnt); in main()
80 if(sem_post(&shmp->wsem) == -1) in main()
87 if(sem_post(&shmp->wsem) == -1) in main()
/dports/math/plplot-ada/plplot-5.15.0/cmake/test_linux_ipc/
H A Dpshm_write.c33 shmbuf *shmp; in main() local
57 if (shmp == MAP_FAILED) in main()
70 if (sem_init(&shmp->rsem, 1, 0) == -1) in main()
77 if (sem_init(&shmp->wsem, 1, 1) == -1) in main()
83 for (xfrs = 0, bytes = 0; ; xfrs++, bytes += shmp->cnt) { in main()
85 if(sem_wait(&shmp->wsem) == -1) in main()
91 shmp->cnt = read(STDIN_FILENO, shmp->buf, BUF_SIZE); in main()
92 if(shmp->cnt == -1) in main()
99 if(sem_post(&shmp->rsem) == -1) in main()
106 if (shmp->cnt == 0) in main()
[all …]
H A Dpshm_read.c33 shmbuf *shmp; in main() local
50 shmp = mmap(NULL, sizeof(shmbuf), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
51 if (shmp == MAP_FAILED) in main()
64 for (xfrs = 0, bytes = 0; ; xfrs++, bytes += shmp->cnt) in main()
67 if(sem_wait(&shmp->rsem) == -1) in main()
74 if(shmp->cnt == 0) in main()
77 write(STDOUT_FILENO, shmp->buf, shmp->cnt); in main()
80 if(sem_post(&shmp->wsem) == -1) in main()
87 if(sem_post(&shmp->wsem) == -1) in main()
/dports/security/opencryptoki/opencryptoki-3.11.0/usr/sbin/pkcsslotd/
H A Dshmem.c207 shmp = NULL; in AttachToSharedMemory()
208 shmp = (Slot_Mgr_Shr_t *) shmat(shmid, NULL, 0); in AttachToSharedMemory()
210 if (!shmp) { in AttachToSharedMemory()
216 memset(shmp, '\0', sizeof(*shmp)); in AttachToSharedMemory()
230 shmp = in AttachToSharedMemory()
234 if (!shmp) { in AttachToSharedMemory()
257 if (shmp == NULL)
260 if (shmdt(shmp) != 0) {
264 shmp = NULL;
267 if (shmp == NULL)
[all …]
H A Dsignal.c70 StopGCThread(shmp); in slotdGenericSignalHandler()
71 CheckForGarbage(shmp); in slotdGenericSignalHandler()
76 Slot_Mgr_Proc_t_64 *pProc = &(shmp->proc_table[procindex]); in slotdGenericSignalHandler()
78 if (shmp == NULL) { in slotdGenericSignalHandler()
97 StartGCThread(shmp); in slotdGenericSignalHandler()
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/columnstore/columnstore/dbcon/joblist/
H A Dtdriver-agg.cpp272 for (iter = shmp->begin(); iter != shmp->end(); iter++) in aggregator()
275 shmp->clear(); in aggregator()
291 SHMP1 shmp; in aggregator()
332 for (iter = shmp->begin(); iter != shmp->end(); iter++) in aggregator()
352 SHMP1 shmp; in aggregator() local
410 for (iter = shmp->begin(); iter != shmp->end(); iter++) in aggregator()
1238 for (iter = shmp->begin(); iter != shmp->end(); iter++) in hashmap_tuple()
1255 SHMP1 shmp; in hashmap_tuple()
1293 for (iter = shmp->begin(); iter != shmp->end(); iter++) in hashmap_tuple()
1315 SHMP shmp;
[all …]
/dports/databases/mariadb105-server/mariadb-10.5.15/storage/columnstore/columnstore/dbcon/joblist/
H A Dtdriver-agg.cpp272 for (iter = shmp->begin(); iter != shmp->end(); iter++) in aggregator()
275 shmp->clear(); in aggregator()
291 SHMP1 shmp; in aggregator()
332 for (iter = shmp->begin(); iter != shmp->end(); iter++) in aggregator()
352 SHMP1 shmp; in aggregator() local
410 for (iter = shmp->begin(); iter != shmp->end(); iter++) in aggregator()
1238 for (iter = shmp->begin(); iter != shmp->end(); iter++) in hashmap_tuple()
1255 SHMP1 shmp; in hashmap_tuple()
1293 for (iter = shmp->begin(); iter != shmp->end(); iter++) in hashmap_tuple()
1315 SHMP shmp;
[all …]
/dports/security/opencryptoki/opencryptoki-3.11.0/usr/lib/api/
H A Dshrd_mem.c.in56 char *shmp; local
116 shmp = (void *) shmat(shmid, NULL, 0);
117 if (!shmp) {
121 return shmp;
130 shmp = (char *) mmap(NULL, sizeof(Slot_Mgr_Shr_t), PROT_READ | PROT_WRITE,
133 if (!shmp) {
136 return shmp;
144 void detach_shared_memory(char *shmp) argument
147 shmdt(shmp);
149 munmap(shmp, sizeof(Slot_Mgr_Shr_t));
/dports/x11-toolkits/qt5-declarative/kde-qtdeclarative-5.15.2p41/src/imports/sharedimage/
H A Dqsharedimageloader.cpp64 QPointer<QSharedMemory> shmp; member
73 if (sii->shmp.isNull()) { in cleanupSharedImage()
77 QSharedMemory *shm = sii->shmp.data(); in cleanupSharedImage()
78 sii->shmp.clear(); in cleanupSharedImage()
216 QSharedMemory *shmp = shm.take(); in load() local
219 sii->shmp = shmp; in load()
220 QImage shImg = createImageFromMem(shmp->constData(), sii); in load()
222 if (!shmp->unlock()) { in load()
/dports/x11-toolkits/qt5-declarative-test/kde-qtdeclarative-5.15.2p41/src/imports/sharedimage/
H A Dqsharedimageloader.cpp64 QPointer<QSharedMemory> shmp; member
73 if (sii->shmp.isNull()) { in cleanupSharedImage()
77 QSharedMemory *shm = sii->shmp.data(); in cleanupSharedImage()
78 sii->shmp.clear(); in cleanupSharedImage()
216 QSharedMemory *shmp = shm.take(); in load() local
219 sii->shmp = shmp; in load()
220 QImage shImg = createImageFromMem(shmp->constData(), sii); in load()
222 if (!shmp->unlock()) { in load()
/dports/emulators/qemu42/qemu-4.2.1/roms/u-boot/drivers/tee/
H A Dtee-uclass.c50 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
88 *shmp = shm; in __tee_shm_add()
100 struct tee_shm **shmp) in tee_shm_alloc() argument
106 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
110 struct tee_shm **shmp) in tee_shm_register() argument
116 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/emulators/qemu5/qemu-5.2.0/roms/u-boot/drivers/tee/
H A Dtee-uclass.c50 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
88 *shmp = shm; in __tee_shm_add()
100 struct tee_shm **shmp) in tee_shm_alloc() argument
106 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
110 struct tee_shm **shmp) in tee_shm_register() argument
116 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-nanopi-neo2/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-olinuxino-lime2/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-cubox-hummingboard/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-cubieboard2/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-cubieboard/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-firefly-rk3399/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-sinovoip-bpi-m3/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-a13-olinuxino/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-a64-olinuxino/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-sopine/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()
/dports/sysutils/u-boot-rpi/u-boot-2021.07/drivers/tee/
H A Dtee-uclass.c52 u32 flags, struct tee_shm **shmp) in __tee_shm_add() argument
90 *shmp = shm; in __tee_shm_add()
102 struct tee_shm **shmp) in tee_shm_alloc() argument
108 return __tee_shm_add(dev, 0, NULL, size, f, shmp); in tee_shm_alloc()
112 struct tee_shm **shmp) in tee_shm_register() argument
118 return __tee_shm_add(dev, 0, addr, size, f, shmp); in tee_shm_register()

12345678910>>...12