a0ebddaac1
This implements the file system logic for posix shared memory: shm_open, shm_unlink, mmap, munmap and close For flat and protected builds the memory simply allocated from (user) heap For kernel build the memory is allocated from page pool and mapped with MMU This doesn't yet support protection flags or re-sizing already truncated shared memory area. Co-authored-by: Ville Juven <ville.juven@unikie.com> Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
############################################################################
|
|
# fs/shm/Make.defs
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership. The
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
############################################################################
|
|
|
|
ifeq ($(CONFIG_FS_SHMFS),y)
|
|
|
|
CSRCS += shm_open.c shm_unlink.c shmfs.c shmfs_alloc.c
|
|
|
|
# Include POSIX shm build support
|
|
|
|
DEPPATH += --dep-path shm
|
|
VPATH += :shm
|
|
endif
|