I was going through the linux kernel sources and found this function definition.
function(struct net * const *pnet)
Can somebody explain what does this mean. Is it a net* or net** or const net* or const net**?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In words: a (non-constant) pointer to a constant array of pointers to (non-constant) structs.
So, you can assign a different array:
or you can change a struct:
but you can’t change a complete struct: