kernel

  1. rigoletto@

    Intel bug incoming.

    Intel Bug Incoming. EDIT: It seems sh!t will get pretty serious: Intel's CEO Just Sold a Lot of Stock UPDATE: 'Kernel memory leaking' Intel processor design flaw forces Linux, Windows redesign
  2. vermaden

    Move FreeBSD kernel messages (white) to second console

    By default FreeBSD puts kernel messages (white color) on the first console. I know I can disable them with boot_mute in the /boot/loader.conf file, but is there a way to move them to second console instead of disabling them? ... or to redirect them to some file instead of disabling them...
  3. Farhan Khan

    dtrace probe not listed

    I do not see the function ifhwioctl listed when I run dtrace -l. This function is located in /usr/src/sys/net/if.c. I thought maybe this was optimized out, so I set the following in my /etc/make.conf CFLAGS= -O0 -fno-inline But it is still not listed. What may be causing this lack of probe?
  4. H

    C tdq_runq_add

    Is MIN and MAX realtime in comment /* * This queue contains only priorities between MIN and MAX * realtime. Use the whole queue to represent these values. */ a typo or am I understanding it wrong? /* * Add a thread to the actual run-queue. Keeps transferable counts up to *...
  5. Gravis

    C Init: mounted root by kernel guaranteed? and other questions.

    I'm developing an init system for many POSIX/POSIX-like systems and after reviewing part of the FreeBSD Architecture Handbook as well as part of the kernel source it appears that upon calling the init binary that it's guaranteed that root will already be mounted. I just want to verify if this...
  6. _enso

    Minimal Kernel & Base Config

    My goal is to create a base system with only the essential tools needed to operate a modern web server. For instance I use IPFW so I don't need PF, IPTABLED and IPFILTER. However this is my first time doing this so I would like advice / feedback on anything that looks incorrect or is a bad...
  7. David John

    Solved Where is the definition and implementation of kldload?

    I am trying to find the implementation of kldload function, which is used in /usr/src/sbin/kldload/kldload.c, L177 fileid = kldload(argv[0]); I searched the kernel code but couldn't really find its implementation! I appreciate your help.
  8. N

    Solved Unknown option MFS error when compiling the kernel

    I get unknown option MFS error when I try to compile kernel with option MFS. Here is config: # # MT7628_FDT -- Kernel configuration file for FreeBSD/MIPS MT7628 and MT7688 # SoCs # # This includes all the configurable parts of the kernel. # # $FreeBSD: head/sys/mips/conf/MT7628_FDT 315141...
  9. David John

    Type casting!

    Can someone explains this casting: #define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var)) Ref: cdefs.h, L651 I have exauhsted all my resources trying to figure out an explanation for this type casting. I appreciate your help.
  10. A

    Writing a FreeBSD kernel module that handles arbitrary interrupt and output to device

    I would like to write a FreeBSD kernel module that could accept some arbitrary interrupts and upon receiving these interrupt, output some data to an arbitrary device. Currently, I'm facing several issues: How would I acquire interrupts through a specific IRQ? On Linux there is the...
  11. J

    What happens in a jail when updating the main host system?

    Hi, despite reading and re-reading the manual, I have an extremely hard time understanding how to keep my FreeBSD host and my FreeBSD jails secure. I am going to try to express my current understanding of FreeBSD as maybe the problem is that I don't understand it. There seems to be on one...
  12. C

    Solved disable device sound in kernel for ASUS Essence One MKII MUSES Edition

    I try to build a FreeBSD Kernel and disable device sound. This is needed for my USB Sound: ASUS Essence One MKII MUSES Edition. To bring this hardware to work I want to install the port: audio/oss This port requires to disable the device sound in kernel. It works great with FreeBSD 10. Now I...
  13. S

    Sendfile(2) FreeBSD Netflix

    Hi, Hopes everybody is doing great here. My question was related to newly developed Sendfile(2) by Netflix specifically for Nginx on FreeBSD only. Is this already enabled in all FreeBSD systems or we need to recompile kernel to obtain sendfile(2) feature ? The more read is here ...
  14. T

    Help me identify exact kernel (and X11) options for my HW

    Hi there, Can you help me find which exact kernel configuration and X11 options I need to optimize my system for FreeBSD? My hardware is an Acer Extensa 2509 with these components Intel Celeron N2930 2 GB RAM DDR3-1600 Intel HD Graphics (Bay Trail) 820 MHz igdumdim64 Seagate Momentus Thin...
  15. S

    Add a new system call at FreeBSD-11 for calculating sum of two values

    Hello, I am a beginner in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VM. I want to add first new system call that it is for calculating sum of two values. I read a sample in https://www.nostarch.com/rootkits.htm. struct sc_example_args { char *str; }; static int sc_example(struct thread...
  16. S

    A simple new system call in FreeBSD-11.0-RELEASE-amd64

    I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VM. I want to add first new system call. I find this link. I Did: cd /usr/src/sys/kern ee mykern.c #include <sys/sysproto.h> #include <sys/proc.h> #include <sys/types.h> #include <sys/systm.h> #ifndef _SYS_SYSPROTO_H_...
  17. A

    Not a How-To: FreeBSD 11 from 0 to full build in less than 2.5 hours

    boring, and a sort of a lost momentum is there Some seminar to attend: Example again: I think there is slipup where "worrier" should have been warrior? Happens to me sometimes. 1. Do not exit install after finishing and answer yes to get to Shell. Once at the prompt type in ee...
  18. S

    freebsd kernel module writing

    Hello, I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VMware. I want to write first FreeBSD kernel module. I find this link: How to write a FreeBSD Kernel Module and now I have some errors in my file, first.c. cc first.c: in file included from first.c:3...
  19. S

    freebsd kernel module - “make” command

    Hello, I am a newbie in FreeBSD. I installed FreeBSD 11 on VMware. I want to write first FreeBSD kernel module. I find this link: How to write a FreeBSD Kernel Module But in step3, after make command I get: unable to locate the kernel source tree. Set SYSDIR to override. I searched it a lot...
  20. Farhan Khan

    Solved PCI Driver vendorID/deviceID defined where?

    Hi all, I am reading the FreeBSD Architecture Handbook, PCI Devices. In the sample source provided, I do not see where the VendorID or DeviceID are defined. My test VirtualBox instance seems probe and attach to 0x80EE (Likely because its Oracle Virtualbox) with the alternating device IDs of...
Back
Top