Accessing sysctls from kernel

From: Ivan Voras (ivoras_at_fer.hr)
Date: 02/26/04

  • Next message: Bruce M Simpson: "Re: Accessing sysctls from kernel"
    Date: Thu, 26 Feb 2004 14:10:40 +0100
    To: hackers@freebsd.org
    
    

    In sys/sys/sysctl.h I see function kernel_sysctlbyname() that looks (to
    me) to be intended for accessing sysctl values from kernel, but for it's
    first parameter it requires a struct thread *td.

    What should I pass to it? (I'm calling it from inside a screensaver module)

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Bruce M Simpson: "Re: Accessing sysctls from kernel"

    Relevant Pages

    • Re: Accessing sysctls from kernel
      ... > me) to be intended for accessing sysctl values from kernel, ... > first parameter it requires a struct thread *td. ...
      (freebsd-hackers)
    • Re: Accessing sysctls from kernel
      ... On Thursday 26 February 2004 08:10 am, Ivan Voras wrote: ... > me) to be intended for accessing sysctl values from kernel, ... > first parameter it requires a struct thread *td. ...
      (freebsd-hackers)
    • Re: firewall/router machine
      ... Did you enabled packet forwarding on your kernel? ... sysctl net.ipv4.ip_forward=1 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Obtaining 75k (active) concurrent tcp sessions..
      ... in the kernel this way, the change will just get a read-only error, just ... sysctl: oid 'kern.ipc.nmbclusters' is a read only tunable ... To unsubscribe, ...
      (freebsd-hackers)
    • Re: Top only showing one active CPU on HTT system
      ... didn't work after recompiling the kernel as well as setting that sysctl ... To unsubscribe, ...
      (freebsd-questions)