MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / dev_unlocked_ioctl

Function dev_unlocked_ioctl

loader/linux/src/entry.c:149–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static long
150dev_unlocked_ioctl(
151 struct file *file, unsigned int cmd, unsigned long ioctl_args)
152{
153 switch (cmd) {
154 case LOADER_START_VMM: {
155 return dispatch_start_vmm((void *)ioctl_args);
156 }
157 case LOADER_STOP_VMM: {
158 return dispatch_stop_vmm((void *)ioctl_args);
159 }
160 case LOADER_DUMP_VMM: {
161 return dispatch_dump_vmm((void *)ioctl_args);
162 }
163 default: {
164 bferror_x64("invalid ioctl cmd", cmd);
165 return -EINVAL;
166 }
167 };
168
169 return 0;
170}
171
172static struct file_operations fops = {
173 .open = dev_open,

Callers

nothing calls this directly

Calls 4

dispatch_start_vmmFunction · 0.85
dispatch_stop_vmmFunction · 0.85
dispatch_dump_vmmFunction · 0.85
bferror_x64Function · 0.50

Tested by

no test coverage detected