cregit-Linux how code gets into the kernel

Release 4.14 arch/um/drivers/cow_sys.h

Directory: arch/um/drivers
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __COW_SYS_H__

#define __COW_SYS_H__

#include <kern_util.h>
#include <os.h>
#include <um_malloc.h>


static inline void *cow_malloc(int size) { return uml_kmalloc(size, UM_GFP_KERNEL); }

Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso1684.21%133.33%
Jeff Dike315.79%266.67%
Total19100.00%3100.00%


static inline void cow_free(void *ptr) { kfree(ptr); }

Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso16100.00%1100.00%
Total16100.00%1100.00%

#define cow_printf printk
static inline char *cow_strdup(char *str) { return uml_strdup(str); }

Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso18100.00%1100.00%
Total18100.00%1100.00%


static inline int cow_seek_file(int fd, __u64 offset) { return os_seek_file(fd, offset); }

Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso21100.00%2100.00%
Total21100.00%2100.00%


static inline int cow_file_size(char *file, unsigned long long *size_out) { return os_file_size(file, size_out); }

Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso25100.00%2100.00%
Total25100.00%2100.00%


static inline int cow_write_file(int fd, void *buf, int size) { return os_write_file(fd, buf, size); }

Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso2696.30%266.67%
Jeff Dike13.70%133.33%
Total27100.00%3100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Paolo 'Blaisorblade' Giarrusso14094.59%444.44%
Jeff Dike42.70%333.33%
Al Viro32.03%111.11%
Greg Kroah-Hartman10.68%111.11%
Total148100.00%9100.00%
Directory: arch/um/drivers
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.