site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KQTpDFJBvhutnxeAx35xFYJF9iz1IP//Ndh82fKsxQq7HFfvk24mDg1JX6pnXshjW4FwyzceARXBw3H/iL5bG8ExzyaBWazEDRzxA9wfvyRhQD1/aWVajEffMqCdcQufsGArRF3C/JoY2AkoftofP0K4PB4JAYVlXy0DsXObqXY= ; I am trying to load the kext using kextload cmd.But not able to do it.Getting some errors like undefined symbols.Here is the errors what i got..... I have included the <sys/kpi_socket.h> header file in which the api's like sock_bind(),sock_close(),sock_connect() etc are defined.Have also included the kernel framework. Is there anything else i need to do?? Please let me know. ------------------------------------- kextload -t firstIOKit.kext/ kextload: extension firstIOKit.kext/ appears to be valid kextload: notice: extension firstIOKit.kext/ has debug properties set kld(): Undefined symbols: ___floatsidf ___gedf2 _sock_bind _sock_close _sock_connect _sock_receive _sock_send _sock_socket kextload: kld_load_from_memory() failed for module /private/tmp/firstIOKit.kext/Contents/MacOS/firstIOKit kextload: a link/load error occured for kernel extension firstIOKit.kext/ load failed for extension firstIOKit.kext/ (run kextload with -t for diagnostic output) -------------------------------------------------- --- Vincent Lubet <vlubet@apple.com> wrote:
On Jun 23, 2006, at 3:27 AM, sanjay yaragatti wrote:
I am writing a kernel mode driver and want to use socket apis for the same.Can I use the same socket calls such as socket(),connect(),accept() etc or there are some other APIs especially for kernel mode. Came across some file called as kpi_socket.h which has APSs such as sock_sock(), sock_bind(),sock_connect() etc Please let me know.
Yes to use sockets in the kernel use the API in kpi_socket.h
Vincent
__________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
sanjay yaragatti