LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-28-2011, 10:36 AM   #1
Niranjan.S
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Where is Socket function definition?


In C programming, i can find usage of "socket" functions for opening a connection. Once i digged into the linux kernel(version 3 & above) using "grep" command for socket functions, i can find only its function calls & no definition. Can u please give me a hint where i can find its definition (or) is it the communication end point in the kernel beyond which we need to see the source code of the Ethernet card?

Your answer can help most of the students understand the connection establishment through software in my company.
Please help.
 
Old 12-28-2011, 05:46 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The socket function should be in socket.c under net directory.
 
Old 12-30-2011, 03:00 PM   #3
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
socket is defined in glibc
sys/socket.h
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
function definition for pcbios_read_config_dword() giri_blr Linux - Kernel 0 07-03-2008 11:41 PM
bind function definition prabhakar_kushwaha Linux - General 1 08-07-2007 08:39 PM
strncpy function definition required lokeshmaremalla Programming 6 11-29-2006 10:42 PM
Using __THROW in function definition drimades Programming 1 11-15-2006 05:50 AM
function definition query slzckboy Programming 1 04-18-2006 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration