kernel

Fingerprint u.a.u 4500 with ubuntu 18.04

你。 提交于 2021-02-07 09:35:25
问题 i want to install the drivers for u are u 4500, but it only can be compiled with old kernel versions (2.6 to 3.2) , can you help me to install the drivers on ubuntu with last kernel version. The sample application of fingerprint cant recognize the device. 回答1: I am not sure what problems you are having, but I could compile and install the driver under Ubuntu 18.04. I did get a few errors during compilation, which I fixed as follows: Error 1: /opt/DigitalPersona/urusdk-linux/Linux/drivers

What is a kernel in Jupyter Notebook and how it is different/similar to actual kernel (related to Operating System)?

谁都会走 提交于 2021-02-07 05:24:33
问题 I hear and see a lot of this word "kernel" as I'm using Jupyter Notebook a bit. I just want to know what "kernel" represents in Jupyter Notebook. Is it the same meaning that we use in Operating System? If it is similar/different, how exactly? Do both kernels do the hardware interaction? Kernel(OS): https://simple.m.wikipedia.org/wiki/Kernel_(computer_science) Kernel (Jupyter Notebook) https://jupyter-client.readthedocs.io/en/stable/kernels.html 回答1: A notebook kernel is an operating system

Study device driver source files?

北城余情 提交于 2021-02-06 09:34:04
问题 I want to study the source files of some of the device drivers that are installed and loaded on either a raspberry pi(raspian), beaglebone(debian) or a my laptop(ubuntu). My aim is to learn how to properly implement my own modules by studying the source files of some drivers that actually works. I am particularly interested in drivers that communicates with actual hardware (USB, I2C, SPI, UART etc). Can someone tell me how to find these sources? are they available in some particular folder i

Invoke Mac Kernel Panic?

半腔热情 提交于 2021-02-06 09:18:23
问题 So i am lookin for some source code to crash the mac kernel. I found crashme for debain linux but that does not work for the mac kernel. So i was wondering if anyone knows where i can find a command-line utility or some source code to invoke the mac kernel panic? This would be a huge help, thanks. 回答1: Apple has a tech note about how to do this. The short way to do it is with this command, sudo dtrace -w -n "BEGIN{ panic();}" , run from the terminal. Update 2020: As noted by Wei Shen in the

Invoke Mac Kernel Panic?

这一生的挚爱 提交于 2021-02-06 09:16:07
问题 So i am lookin for some source code to crash the mac kernel. I found crashme for debain linux but that does not work for the mac kernel. So i was wondering if anyone knows where i can find a command-line utility or some source code to invoke the mac kernel panic? This would be a huge help, thanks. 回答1: Apple has a tech note about how to do this. The short way to do it is with this command, sudo dtrace -w -n "BEGIN{ panic();}" , run from the terminal. Update 2020: As noted by Wei Shen in the

finding the username in a linux system call

吃可爱长大的小学妹 提交于 2021-02-04 19:22:34
问题 I have added a system call to Linux kernel that looks like this: #include <linux/kernel.h> #include <linux/sched.h> #include <linux/list.h> #include <linux/cred.h> #include <asm/uaccess.h> asmlinkage int sys_os_pid_to_uid(int pid, int* puid) { struct task_struct* task; rcu_read_lock(); for_each_process(task) { if (task->pid == (pid_t) pid) { copy_to_user(puid, &(task->cred->uid.val), sizeof(task->cred->uid.val)); } } rcu_read_unlock(); return 0; } It gets a process ID ( pid ) and determines

Trying to find all the kernel modules needed for my machine using shell script

旧巷老猫 提交于 2021-02-04 10:27:10
问题 I'm developing kernel modules right now, and the build times are starting to get under my skin. As a side effect I'm taking way too many "coffee" breaks during builds. So I was looking for a way to build only the stuffs I need for my platform. Chapter 7 and 8 of "linux kernel in a nutshell" gave a good detail of how to do that by hand. Its a good read : http://www.kroah.com/lkn/ But Although I understand the stuffs, this is still a lot of tweaks to make that work. 2.6.32 and later kernels

Linux: writes are split into 512K chunks

為{幸葍}努か 提交于 2021-02-04 05:50:27
问题 I have a user-space application that generates big SCSI writes (details below). However, when I'm looking at the SCSI commands that reach the SCSI target (i.e. the storage, connected by the FC) something is splitting these writes into 512K chunks. The application basically does 1M-sized direct writes directly into the device: fd = open("/dev/sdab", ..|O_DIRECT); write(fd, ..., 1024 * 1024); This code causes two SCSI WRITEs to be sent, 512K each. However, if I issue a direct SCSI command,

Linux: writes are split into 512K chunks

与世无争的帅哥 提交于 2021-02-04 05:50:20
问题 I have a user-space application that generates big SCSI writes (details below). However, when I'm looking at the SCSI commands that reach the SCSI target (i.e. the storage, connected by the FC) something is splitting these writes into 512K chunks. The application basically does 1M-sized direct writes directly into the device: fd = open("/dev/sdab", ..|O_DIRECT); write(fd, ..., 1024 * 1024); This code causes two SCSI WRITEs to be sent, 512K each. However, if I issue a direct SCSI command,

Difference between Kernel, Kernel-Thread and User-Thread

岁酱吖の 提交于 2021-01-29 20:46:33
问题 i'm not sure, if i totally understand the above mentioned differences, so i'd like to explain it on my own and you can interrupt me, as far as i get wrong: "A kernel is the initial piece of code which creates kernel-threads. Kernel threads are processes managed by the kernel. user-threads are part of a process. If you have a single-threaded process, than the whole process itself would be a user-thread. User-Threads make system-calls and this system-calls are served by a specific kernel-Thread