sysctl hacks
From: Alfred Perlstein (alfred_at_freebsd.org)
Date: 08/21/04
- Previous message: Skip Ford: "Re: off by one bounds"
- Next in thread: Poul-Henning Kamp: "Re: sysctl hacks"
- Reply: Poul-Henning Kamp: "Re: sysctl hacks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 21 Aug 2004 13:02:05 -0700 To: hackers@freebsd.org, phk@freebsd.org
I'm doing some work that requires that I have a sysctl structure
be passed around, but inside that structure are several pointers I
may need to dereference.
Basically:
struct mysysctldata {
.... (data here)
void *moredata;
size_t morelen;
};
What is the proper way of sysctl'ing IN the data from moredata?
I need to make a copy of the sysctl req, but... I'm not sure what
to initialize the 'lock' member to.
Any hints would be appeciated.
-- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684 _______________________________________________ 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"
- Previous message: Skip Ford: "Re: off by one bounds"
- Next in thread: Poul-Henning Kamp: "Re: sysctl hacks"
- Reply: Poul-Henning Kamp: "Re: sysctl hacks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]