What is the “current” in Linux kernel source?

It’s a pointer to the current process (i.e. the process that issued the system call). On x86, it’s defined in arch/x86/include/asm/current.h (similar files for other archs). #ifndef _ASM_X86_CURRENT_H #define _ASM_X86_CURRENT_H #include <linux/compiler.h> #include <asm/percpu.h> #ifndef __ASSEMBLY__ struct task_struct; DECLARE_PER_CPU(struct task_struct *, current_task); static __always_inline struct task_struct *get_current(void) { return percpu_read_stable(current_task); } #define current get_current() #endif … Read more

What changes in a jailbroken kernel?

All the “modern” kernel patches are based on comex’s patches. the main things which are being patched are: security.mac.proc_enforce cs_enforcement_disable (kernel and AMFI) PE_i_can_has_debugger vm_map_enter vm_map_protect … Oh, and there are sandbox patches too. If you wanna read more about all these patches I suggest you take a look at iOS Hacker’s Handbook. Edit: I … Read more

why is u8 u16 u32 u64 used instead of unsigned int in kernel programming

Often when working close to the hardware or when trying to control the size/format of a data structure you need to have precise control of the size of your integers. As for u8 vs uint8_t, this is simply because Linux predated <stdint.h> being available in C, which is technically a C99-ism, but in my experience … Read more

Learning kernel hacking and embedded development at home? [closed]

If you are completely new to kernel development, i would suggest not starting with hardware development and going to some “software-only” kernel modules like proc file / sysfs or for more complex examples filesystem / network development , developing on a uml/vmware/virtualbox/… machine so crashing your machine won’t hurt so much 🙂 For embedded development … Read more

How can I display the version of my Jupyter notebook and run cells in Jupyter notebooks? I get an error: bad interpreter

From your terminal, you can simply do: jupyter –version Or, if you are using a notebook then do: !jupyter –version Here is the output in my case: jupyter core : 4.5.0 jupyter-notebook : 5.2.2 qtconsole : 4.5.2 ipython : 5.5.0 ipykernel : 4.10.1 jupyter client : 5.3.1 jupyter lab : not installed nbconvert : 5.5.0 … Read more

Mac OS X virtual audio driver

Take a look at the open-source WavTap, which is a simplified fork of the open-source SoundFlower virtual sound card driver. It is a .kext that I believe does substantially what you want. For reference, here is how some popular commercial closed-source options work: Rogue Amoeba’s Audio Hijack Pro -Captures system audio via code based off … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)