• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: userspace / kernel communication with control socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: userspace / kernel communication with control socket


  • Subject: Re: userspace / kernel communication with control socket
  • From: Jean Suisse <email@hidden>
  • Date: Tue, 28 Aug 2012 23:32:51 +0200

Thank you for the link.
It's done. (Bug ID# 12191689)

Summary:

Two mistakes in the following documentation headers:

- sys/kern_control.h  => doc of function ctl_enqueuedata(…)
- sys/kpi_socketfilter.h => sf_data_out_func

Steps to Reproduce:

1. In <sys/kern_control.h> on line 395, the documentation of the function ctl_enqueuedata(…) states:
"@param flags Send flags. CTL_DATA_NOWAKEUP is currently the only supported flag" 
this is not true and misleading for inexperienced kernel extension programmers who don't know better.

2. In <sys/kpi_socketfilter.h>on line 334, the documentation of the function sf_connect_out_func states:
" @result Return:
0 - The caller will continue with normal processing of the
connection.
Anything Else - The caller will rejecting the outbound
connection.
"
which is not true. It is also possible to return EJUSTRETURN to stop the processing without rejecting the outbound connection.

Expected Results:

- improvement of the documentation accuracy.
- diminution of the number of confused readers.

Actual Results:

Actual results will depend on the number of developers actually reading this specific part of the documentation.

Regression:

No regression to foresee.

Notes:

---



On 28 août 2012, at 23:12, Vincent Lubet wrote:

Hi Jean,

Le Aug 28, 2012 à 1:56 PM, Jean Suisse <email@hidden> a écrit :

Is there a way to report a mistake in the documentation ? Because stating that CTL_DATA_NOWAKEUP is currently the only supported flag is probably way outdated and really annoying. I do not wish others to stay stuck on this kind of bug for so long…

Please file problem reports there: https://bugreporter.apple.com/

Vincent

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >userspace / kernel communication with control socket (From: Jean Suisse <email@hidden>)
 >Re: userspace / kernel communication with control socket (From: Josh Graessley <email@hidden>)
 >Re: userspace / kernel communication with control socket (From: Jean Suisse <email@hidden>)
 >Re: userspace / kernel communication with control socket (From: Vincent Lubet <email@hidden>)

  • Prev by Date: Re: userspace / kernel communication with control socket
  • Next by Date: lio_listio(2) was deprecated?
  • Previous by thread: Re: userspace / kernel communication with control socket
  • Next by thread: lio_listio(2) was deprecated?
  • Index(es):
    • Date
    • Thread