aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2021-01-23 00:08:59 +0000
committerBrooks Davis <brooks@FreeBSD.org>2021-01-25 21:50:37 +0000
commit7a1591c1b625ef47a9c9954f0143a6f0d78cc05c (patch)
tree2650727f7cc3eb481e987e2af949fcebb628768a /sys/sys
parentbfc99943b04b46a6c1c885ce7bcc6f235b7422aa (diff)
downloadsrc-7a1591c1b625ef47a9c9954f0143a6f0d78cc05c.tar.gz
src-7a1591c1b625ef47a9c9954f0143a6f0d78cc05c.zip
Rename kern_mmap_req to kern_mmap
Replace all uses of kern_mmap with kern_mmap_req move the old kern_mmap. Reand rename kern_mmap_req to kern_mmap . The helper saved some code churn initially, but having multiple interfaces is sub-optimal. Obtained from: CheriBSD Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D28292
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/syscallsubr.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 71e76f072693..9e889e9d5465 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -201,12 +201,10 @@ int kern_mknodat(struct thread *td, int fd, const char *path,
enum uio_seg pathseg, int mode, dev_t dev);
int kern_mlock(struct proc *proc, struct ucred *cred, uintptr_t addr,
size_t len);
-int kern_mmap(struct thread *td, uintptr_t addr, size_t len, int prot,
- int flags, int fd, off_t pos);
+int kern_mmap(struct thread *td, const struct mmap_req *mrp);
int kern_mmap_racct_check(struct thread *td, struct vm_map *map,
vm_size_t size);
int kern_mmap_maxprot(struct proc *p, int prot);
-int kern_mmap_req(struct thread *td, const struct mmap_req *mrp);
int kern_mprotect(struct thread *td, uintptr_t addr, size_t size, int prot);
int kern_msgctl(struct thread *, int, int, struct msqid_ds *);
int kern_msgrcv(struct thread *, int, void *, size_t, long, int, long *);