xpmem: Add xpmem_openat
In arm64, glibc-open of /dev/xpmem is hooked in sys_openat. This commit adds xpmem_openat which is called by sys_openat. This commit silently applies copy_from_user fix to sys_open as well. Change-Id: I3b4f7bf0e152c359250bb2b56910db9192390cb1 Fujitsu: POSTK_DEBUG_ARCH_DEP_46, POSTK_DEBUG_ARCH_DEP_62
This commit is contained in:
committed by
Dominique Martinet
parent
e12d5ed341
commit
04c11f35e9
@ -19,14 +19,13 @@
|
||||
|
||||
#define XPMEM_DEV_PATH "/dev/xpmem"
|
||||
|
||||
#if defined(POSTK_DEBUG_ARCH_DEP_46) || defined(POSTK_DEBUG_ARCH_DEP_62)
|
||||
extern int xpmem_open(int, const char*, int, ihk_mc_user_context_t *ctx);
|
||||
#else /* POSTK_DEBUG_ARCH_DEP_46 || POSTK_DEBUG_ARCH_DEP_62 */
|
||||
extern int xpmem_open(ihk_mc_user_context_t *ctx);
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_46 || POSTK_DEBUG_ARCH_DEP_62 */
|
||||
extern int xpmem_remove_process_memory_range(struct process_vm *vm,
|
||||
int xpmem_open(const char *pathname,
|
||||
int flags, ihk_mc_user_context_t *ctx);
|
||||
int xpmem_openat(const char *pathname,
|
||||
int flags, ihk_mc_user_context_t *ctx);
|
||||
int xpmem_remove_process_memory_range(struct process_vm *vm,
|
||||
struct vm_range *vmr);
|
||||
extern int xpmem_fault_process_memory_range(struct process_vm *vm,
|
||||
int xpmem_fault_process_memory_range(struct process_vm *vm,
|
||||
struct vm_range *vmr, unsigned long vaddr, uint64_t reason);
|
||||
|
||||
#endif /* _XPMEM_H */
|
||||
|
||||
Reference in New Issue
Block a user