Skip to content

Commit

Permalink
chore(style): change comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrichardrinehart committed May 11, 2024
1 parent e7ca7a0 commit a989acf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,12 @@ static void bump_file_max_and_nr_open(void) {
#if BUMP_PROC_SYS_FS_NR_OPEN
unsigned v = INT_MAX;

// cf. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/file.c?h=v6.8#n27
/* cf. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/file.c?h=v6.8#n27
* for the progeny of the below value for `sysctl_nr_open_max`. Note
* that the below logic was first introduced in `git` commit
* eceea0b3df05ed262ae32e0c6340cc7a3626632d of the `linux` kernel and
* was designed to prevent overflows when determining the maximum
* number of possible file descriptors. */
#define BITS_PER_LONG __WORDSIZE
#define __const_min(x, y) ((x) < (y) ? (x) : (y))
unsigned sysctl_nr_open_max =
Expand Down

0 comments on commit a989acf

Please sign in to comment.