Home
last modified time | relevance | path

Searched refs:shm (Results 1 – 25 of 4673) sorted by relevance

12345678910>>...187

/dports/security/afl++/AFLplusplus-3.14c/src/
H A Dafl-sharedmem.c84 munmap(shm->map, shm->map_size); in afl_shm_deinit()
109 munmap(shm->cmp_map, shm->map_size); in afl_shm_deinit()
135 shm->map = NULL; in afl_shm_deinit()
148 shm->map = NULL; in afl_shm_init()
177 shm->map = in afl_shm_init()
237 if (shm->cmp_map == (void *)-1 || !shm->cmp_map) in afl_shm_init()
245 shm->shm_id = in afl_shm_init()
288 shm->map = shmat(shm->shm_id, NULL, 0); in afl_shm_init()
290 if (shm->map == (void *)-1 || !shm->map) { in afl_shm_init()
306 shm->cmp_map = shmat(shm->cmplog_shm_id, NULL, 0); in afl_shm_init()
[all …]
/dports/mail/fdm/fdm-2.0/
H A Dshm-mmap.c45 shm_path(struct shm *shm) in shm_path() argument
56 shm_expand(struct shm *shm, size_t size) in shm_expand() argument
66 if (lseek(shm->fd, shm->size, SEEK_SET) == -1) in shm_expand()
102 shm_create(struct shm *shm, size_t size) in shm_create() argument
139 shm_destroy(struct shm *shm) in shm_destroy() argument
158 shm_close(struct shm *shm) in shm_close() argument
163 if (munmap(shm->data, shm->size) != 0) in shm_close()
173 shm_reopen(struct shm *shm) in shm_reopen() argument
182 shm->data = mmap(NULL, shm->size, SHM_PROT, SHM_FLAGS, shm->fd, 0); in shm_reopen()
212 if (munmap(shm->data, shm->size) != 0) in shm_resize()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/tee/
H A Dtee_shm.c19 unpin_user_pages(shm->pages, shm->num_pages); in release_registered_pages()
62 kfree(shm); in tee_shm_release()
134 shm = kzalloc(sizeof(*shm), GFP_KERNEL); in tee_shm_alloc()
135 if (!shm) { in tee_shm_alloc()
179 return shm; in tee_shm_alloc()
189 kfree(shm); in tee_shm_alloc()
222 shm = kzalloc(sizeof(*shm), GFP_KERNEL); in tee_shm_register()
306 if (shm) { in tee_shm_register()
396 if (pa >= (shm->paddr + shm->size)) in tee_shm_pa2va()
400 void *v = tee_shm_get_va(shm, pa - shm->paddr); in tee_shm_pa2va()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/tee/
H A Dtee_shm.c19 unpin_user_pages(shm->pages, shm->num_pages); in release_registered_pages()
62 kfree(shm); in tee_shm_release()
134 shm = kzalloc(sizeof(*shm), GFP_KERNEL); in tee_shm_alloc()
135 if (!shm) { in tee_shm_alloc()
179 return shm; in tee_shm_alloc()
189 kfree(shm); in tee_shm_alloc()
222 shm = kzalloc(sizeof(*shm), GFP_KERNEL); in tee_shm_register()
306 if (shm) { in tee_shm_register()
396 if (pa >= (shm->paddr + shm->size)) in tee_shm_pa2va()
400 void *v = tee_shm_get_va(shm, pa - shm->paddr); in tee_shm_pa2va()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/tee/
H A Dtee_shm.c19 unpin_user_pages(shm->pages, shm->num_pages); in release_registered_pages()
62 kfree(shm); in tee_shm_release()
134 shm = kzalloc(sizeof(*shm), GFP_KERNEL); in tee_shm_alloc()
135 if (!shm) { in tee_shm_alloc()
179 return shm; in tee_shm_alloc()
189 kfree(shm); in tee_shm_alloc()
222 shm = kzalloc(sizeof(*shm), GFP_KERNEL); in tee_shm_register()
306 if (shm) { in tee_shm_register()
396 if (pa >= (shm->paddr + shm->size)) in tee_shm_pa2va()
400 void *v = tee_shm_get_va(shm, pa - shm->paddr); in tee_shm_pa2va()
[all …]
/dports/ftp/wzdftpd/wzdftpd-0.8.3/libwzd-core/
H A Dwzd_shm.c152 wzd_shm_t *shm; in wzd_shm_create() local
166 shm->datazone = MapViewOfFile(shm->handle,FILE_MAP_ALL_ACCESS, in wzd_shm_create()
175 return shm; in wzd_shm_create()
181 wzd_shm_t *shm; in wzd_shm_get() local
203 return shm; in wzd_shm_get()
221 if (shm) in wzd_shm_free()
323 shm->datazone = shmat(shm->shmid,NULL,0);
348 return shm;
380 shm->datazone = shmat(shm->shmid,NULL,0);
414 return shm;
[all …]
/dports/security/modsecurity3-nginx/nginx-1.20.0/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
17 shm->addr = (u_char *) mmap(NULL, shm->size, in ngx_shm_alloc()
32 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
34 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
36 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
43 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE, in ngx_shm_alloc()
73 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
75 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
77 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
[all …]
/dports/www/nginx-naxsi/nginx-1.20.2/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
17 shm->addr = (u_char *) mmap(NULL, shm->size, in ngx_shm_alloc()
32 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
34 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
36 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
43 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE, in ngx_shm_alloc()
73 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
75 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
77 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
[all …]
/dports/www/nginx/nginx-1.20.2/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
17 shm->addr = (u_char *) mmap(NULL, shm->size, in ngx_shm_alloc()
32 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
34 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
36 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
43 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE, in ngx_shm_alloc()
73 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
75 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
77 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
[all …]
/dports/www/nginx-full/nginx-1.20.2/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
17 shm->addr = (u_char *) mmap(NULL, shm->size, in ngx_shm_alloc()
32 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
34 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
36 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
43 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE, in ngx_shm_alloc()
73 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
75 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
77 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
[all …]
/dports/www/nginx-lite/nginx-1.20.2/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
17 shm->addr = (u_char *) mmap(NULL, shm->size, in ngx_shm_alloc()
32 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
34 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
36 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
43 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE, in ngx_shm_alloc()
73 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
75 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
77 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
[all …]
/dports/www/nginx-devel/nginx-1.21.5/src/os/unix/
H A Dngx_shmem.c15 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
17 shm->addr = (u_char *) mmap(NULL, shm->size, in ngx_shm_alloc()
32 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
34 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
36 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
43 ngx_shm_alloc(ngx_shm_t *shm) in ngx_shm_alloc() argument
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE, in ngx_shm_alloc()
73 ngx_shm_free(ngx_shm_t *shm) in ngx_shm_free() argument
75 if (munmap((void *) shm->addr, shm->size) == -1) { in ngx_shm_free()
77 "munmap(%p, %uz) failed", shm->addr, shm->size); in ngx_shm_free()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/gfx/cairo/cairo/src/
H A Dcairo-xlib-surface-shm.c383 shm.shmaddr = shmat (shm.shmid, NULL, 0); in can_use_shm()
736 shm->info->last_request = shm->active; in _cairo_xlib_shm_surface_finish()
823 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_shm_surface_create()
852 &shm->info->pool->shm, in _cairo_xlib_shm_surface_create()
857 shm->active = shm->info->last_request; in _cairo_xlib_shm_surface_create()
948 shm->image.width, shm->image.height, in _cairo_xlib_surface_update_shm()
980 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_clear_shm()
1194 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_create_similar_shm()
1252 return &shm->info->pool->shm; in _cairo_xlib_shm_surface_get_obdata()
1396 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_display_init_shm()
[all …]
/dports/www/firefox/firefox-99.0/gfx/cairo/cairo/src/
H A Dcairo-xlib-surface-shm.c383 shm.shmaddr = shmat (shm.shmid, NULL, 0); in can_use_shm()
736 shm->info->last_request = shm->active; in _cairo_xlib_shm_surface_finish()
823 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_shm_surface_create()
852 &shm->info->pool->shm, in _cairo_xlib_shm_surface_create()
857 shm->active = shm->info->last_request; in _cairo_xlib_shm_surface_create()
948 shm->image.width, shm->image.height, in _cairo_xlib_surface_update_shm()
980 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_clear_shm()
1194 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_create_similar_shm()
1252 return &shm->info->pool->shm; in _cairo_xlib_shm_surface_get_obdata()
1396 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_display_init_shm()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/cairo/cairo/src/
H A Dcairo-xlib-surface-shm.c383 shm.shmaddr = shmat (shm.shmid, NULL, 0); in can_use_shm()
736 shm->info->last_request = shm->active; in _cairo_xlib_shm_surface_finish()
823 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_shm_surface_create()
852 &shm->info->pool->shm, in _cairo_xlib_shm_surface_create()
857 shm->active = shm->info->last_request; in _cairo_xlib_shm_surface_create()
948 shm->image.width, shm->image.height, in _cairo_xlib_surface_update_shm()
980 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_clear_shm()
1194 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_create_similar_shm()
1252 return &shm->info->pool->shm; in _cairo_xlib_shm_surface_get_obdata()
1396 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_display_init_shm()
[all …]
/dports/graphics/cairo/cairo-1.17.4/src/
H A Dcairo-xlib-surface-shm.c380 shm.shmaddr = shmat (shm.shmid, NULL, 0); in can_use_shm()
733 shm->info->last_request = shm->active; in _cairo_xlib_shm_surface_finish()
817 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_shm_surface_create()
846 &shm->info->pool->shm, in _cairo_xlib_shm_surface_create()
851 shm->active = shm->info->last_request; in _cairo_xlib_shm_surface_create()
942 shm->image.width, shm->image.height, in _cairo_xlib_surface_update_shm()
974 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_clear_shm()
1188 memset (shm->image.data, 0, shm->image.stride * shm->image.height); in _cairo_xlib_surface_create_similar_shm()
1246 return &shm->info->pool->shm; in _cairo_xlib_shm_surface_get_obdata()
1390 shm = _cairo_malloc (sizeof (*shm)); in _cairo_xlib_display_init_shm()
[all …]
/dports/benchmarks/uperf/uperf-1.0.7/src/
H A Dslave.c84 s->shmptr = shm; in slave_spawn_strands()
94 shm->no_strands = shm->worklist->nthreads; in slave_spawn_strands()
190 if (shm->finished == shm->no_strands) in slave_master_poll()
222 if (shm->bitswap) in slave_master_goodbye()
255 shm->connection_list = (protocol_t **)((char *)shm + in slave_init()
264 return (shm); in slave_init()
299 free(shm); in slave_master()
308 free(shm); in slave_master()
320 free(shm); in slave_master()
324 if (shm_init_barriers_slave(shm, shm->worklist) != 0) { in slave_master()
[all …]
/dports/graphics/gimp-app/gimp-2.10.30/app/plug-in/
H A Dgimppluginshm.c100 shm->shm_ID = -1; in gimp_plug_in_shm_new()
108 if (shm->shm_ID != -1) in gimp_plug_in_shm_new()
110 shm->shm_addr = (guchar *) shmat (shm->shm_ID, NULL, 0); in gimp_plug_in_shm_new()
151 if (shm->shm_handle) in gimp_plug_in_shm_new()
154 shm->shm_addr = (guchar *) MapViewOfFile (shm->shm_handle, in gimp_plug_in_shm_new()
234 if (shm->shm_ID == -1) in gimp_plug_in_shm_new()
237 shm = NULL; in gimp_plug_in_shm_new()
244 return shm; in gimp_plug_in_shm_new()
252 if (shm->shm_ID != -1) in gimp_plug_in_shm_free()
292 return shm->shm_ID; in gimp_plug_in_shm_get_ID()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/media/base/
H A Dunaligned_shared_memory_unittest.cc45 UnalignedSharedMemory shm( in TEST() local
53 UnalignedSharedMemory shm( in TEST() local
66 UnalignedSharedMemory shm( in TEST() local
76 UnalignedSharedMemory shm( in TEST() local
86 UnalignedSharedMemory shm( in TEST() local
96 UnalignedSharedMemory shm( in TEST() local
113 UnalignedSharedMemory shm( in TEST() local
122 UnalignedSharedMemory shm( in TEST() local
131 UnalignedSharedMemory shm( in TEST() local
140 UnalignedSharedMemory shm( in TEST() local
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/base/
H A Dunaligned_shared_memory_unittest.cc46 UnalignedSharedMemory shm( in TEST() local
54 UnalignedSharedMemory shm( in TEST() local
67 UnalignedSharedMemory shm( in TEST() local
77 UnalignedSharedMemory shm( in TEST() local
87 UnalignedSharedMemory shm( in TEST() local
97 UnalignedSharedMemory shm( in TEST() local
114 UnalignedSharedMemory shm( in TEST() local
123 UnalignedSharedMemory shm( in TEST() local
132 UnalignedSharedMemory shm( in TEST() local
141 UnalignedSharedMemory shm( in TEST() local
[all …]
/dports/devel/avr-gdb/gdb-7.3.1/sim/ppc/
H A Dhw_shm.c109 DTRACE(shm, ("shm key (0x%08x)\n", shm->key) ); in hw_shm_init_data()
127 DTRACE(shm, ("shm physical_address=0x%x\n", shm->physical_address)); in hw_shm_init_data()
130 DTRACE(shm, ("shm length=0x%x\n", shm->sizeof_memory)); in hw_shm_init_data()
140 shm->id = shmget(shm->key, shm->sizeof_memory, IPC_CREAT | 0660); in hw_shm_init_data()
141 if (shm->id == -1) in hw_shm_init_data()
144 shm->shm_address = shmat(shm->id, (char *)0, SHM_RND); in hw_shm_init_data()
182 shm->shm_address, shm->physical_address, addr, nr_bytes) ); in hw_shm_io_read_buffer()
184 memcpy(dest, &shm->shm_address[addr - shm->physical_address], nr_bytes); in hw_shm_io_read_buffer()
203 shm->shm_address, shm->physical_address, addr, nr_bytes) ); in hw_shm_io_write_buffer()
205 memcpy(&shm->shm_address[addr - shm->physical_address], source, nr_bytes); in hw_shm_io_write_buffer()
[all …]
/dports/devel/gdb761/gdb-7.6.1/sim/ppc/
H A Dhw_shm.c108 DTRACE(shm, ("shm key (0x%08x)\n", shm->key) ); in hw_shm_init_data()
126 DTRACE(shm, ("shm physical_address=0x%x\n", shm->physical_address)); in hw_shm_init_data()
129 DTRACE(shm, ("shm length=0x%x\n", shm->sizeof_memory)); in hw_shm_init_data()
139 shm->id = shmget(shm->key, shm->sizeof_memory, IPC_CREAT | 0660); in hw_shm_init_data()
140 if (shm->id == -1) in hw_shm_init_data()
143 shm->shm_address = shmat(shm->id, (char *)0, SHM_RND); in hw_shm_init_data()
181 shm->shm_address, shm->physical_address, addr, nr_bytes) ); in hw_shm_io_read_buffer()
183 memcpy(dest, &shm->shm_address[addr - shm->physical_address], nr_bytes); in hw_shm_io_read_buffer()
202 shm->shm_address, shm->physical_address, addr, nr_bytes) ); in hw_shm_io_write_buffer()
204 memcpy(&shm->shm_address[addr - shm->physical_address], source, nr_bytes); in hw_shm_io_write_buffer()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/nsprpub/pr/src/md/unix/
H A Duxshm.c79 shm->size = size; in _MD_OpenSharedMemory()
80 shm->mode = mode; in _MD_OpenSharedMemory()
86 int osfd = open( shm->ipcname, (O_RDWR | O_CREAT), shm->mode ); in _MD_OpenSharedMemory()
116 shm->id = shmget( key, shm->size, ( shm->mode | IPC_CREAT|IPC_EXCL)); in _MD_OpenSharedMemory()
130 shm->id = shmget( key, shm->size, shm->mode ); in _MD_OpenSharedMemory()
140 return( shm ); in _MD_OpenSharedMemory()
189 PR_DELETE(shm); in _MD_CloseSharedMemory()
331 shm->id = shm_open( shm->ipcname, oflag, shm->mode ); in _MD_OpenSharedMemory()
333 shm->id = shm_open( shm->ipcname, O_RDWR, shm->mode ); in _MD_OpenSharedMemory()
346 end = ftruncate( shm->id, shm->size ); in _MD_OpenSharedMemory()
[all …]
/dports/www/firefox/firefox-99.0/nsprpub/pr/src/md/unix/
H A Duxshm.c79 shm->size = size; in _MD_OpenSharedMemory()
80 shm->mode = mode; in _MD_OpenSharedMemory()
86 int osfd = open( shm->ipcname, (O_RDWR | O_CREAT), shm->mode ); in _MD_OpenSharedMemory()
116 shm->id = shmget( key, shm->size, ( shm->mode | IPC_CREAT|IPC_EXCL)); in _MD_OpenSharedMemory()
130 shm->id = shmget( key, shm->size, shm->mode ); in _MD_OpenSharedMemory()
140 return( shm ); in _MD_OpenSharedMemory()
189 PR_DELETE(shm); in _MD_CloseSharedMemory()
331 shm->id = shm_open( shm->ipcname, oflag, shm->mode ); in _MD_OpenSharedMemory()
333 shm->id = shm_open( shm->ipcname, O_RDWR, shm->mode ); in _MD_OpenSharedMemory()
346 end = ftruncate( shm->id, shm->size ); in _MD_OpenSharedMemory()
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/nsprpub/pr/src/md/unix/
H A Duxshm.c79 shm->size = size; in _MD_OpenSharedMemory()
80 shm->mode = mode; in _MD_OpenSharedMemory()
86 int osfd = open( shm->ipcname, (O_RDWR | O_CREAT), shm->mode ); in _MD_OpenSharedMemory()
116 shm->id = shmget( key, shm->size, ( shm->mode | IPC_CREAT|IPC_EXCL)); in _MD_OpenSharedMemory()
130 shm->id = shmget( key, shm->size, shm->mode ); in _MD_OpenSharedMemory()
140 return( shm ); in _MD_OpenSharedMemory()
189 PR_DELETE(shm); in _MD_CloseSharedMemory()
335 shm->id = shm_open( shm->ipcname, oflag, shm->mode ); in _MD_OpenSharedMemory()
337 shm->id = shm_open( shm->ipcname, O_RDWR, shm->mode ); in _MD_OpenSharedMemory()
350 end = ftruncate( shm->id, shm->size ); in _MD_OpenSharedMemory()
[all …]

12345678910>>...187