Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/beanstalkd/beanstalkd
/ functions
Functions
349 in github.com/beanstalkd/beanstalkd
⨍
Functions
349
◇
Types & classes
47
↓ 415 callers
Function
mustsend
testserv.c:347
↓ 259 callers
Function
ckresp
testserv.c:319
↓ 202 callers
Function
ckrespsub
testserv.c:326
↓ 70 callers
Function
mustdiallocal
testserv.c:76
↓ 30 callers
Function
job_free
job.c:157
↓ 20 callers
Function
heapremove
heap.c:99
↓ 19 callers
Function
nanoseconds
time.c:6
↓ 17 callers
Function
optparse
util.c:154
↓ 16 callers
Function
die
ct/ct.c:126
↓ 15 callers
Function
ctdir
ct/ct.c:84
↓ 15 callers
Function
heapinsert
Heapinsert inserts x into heap h according to h->less. It returns 1 on success, otherwise 0.
heap.c:73
↓ 14 callers
Function
warnx
util.c:41
↓ 13 callers
Function
warnpos
file.c:441
↓ 12 callers
Function
bench_put_delete_size
testserv.c:1990
↓ 12 callers
Function
job_find
job.c:81
↓ 11 callers
Function
make_tube
tube.c:8
↓ 11 callers
Function
ms_append
ms.c:34
↓ 11 callers
Function
reply_line
reply_line prints *fmt into c->reply_buffer and calls reply() for the string and state.
prot.c:365
↓ 10 callers
Function
ms_init
ms.c:6
↓ 9 callers
Function
bury_job
prot.c:543
↓ 9 callers
Function
enqueue_job
enqueue_job inserts job j in the tube, returns 1 on success, otherwise 0. If update_store then it writes an entry to WAL. On success it processes the
prot.c:506
↓ 8 callers
Function
epollq_apply
Propagate changes to event notification mechanism about expected operations in connections' sockets. Clear the epollq list.
prot.c:319
↓ 8 callers
Function
filermjob
file.c:109
↓ 8 callers
Function
fmtalloc
util.c:51
↓ 8 callers
Function
job_list_remove
job.c:245
↓ 8 callers
Function
min
ct/ct.c:399
↓ 8 callers
Function
read_u64
Read an integer from the given buffer and place it in num. * Parsed integer should fit into uint64. * Update end to point to the address after the l
prot.c:1011
↓ 7 callers
Function
flagusage
util.c:131
↓ 7 callers
Function
get_all_jobs_used
for unit tests */
job.c:271
↓ 7 callers
Function
readfull
file.c:421
↓ 6 callers
Function
check_err
prot.c:745
↓ 6 callers
Function
ctstoptimer
ct/ct.c:109
↓ 6 callers
Function
filewrite
file.c:501
↓ 6 callers
Function
job_list_reset
job_list_reset detaches head from the list, marking the list starting in head pointing to itself.
job.c:232
↓ 6 callers
Function
ms_remove
ms.c:70
↓ 6 callers
Function
read_u32
Indentical to read_u64() but instead reads into uint32.
prot.c:1038
↓ 6 callers
Function
reply_job
reply_job tells the connection c which job to send, and replies with this line: <msg> <job_id> <job_size>.
prot.c:386
↓ 6 callers
Function
sockwant
sunos.c:25
↓ 5 callers
Function
ctresettimer
ct/ct.c:91
↓ 5 callers
Function
is_valid_tube
prot.c:1277
↓ 5 callers
Function
job_copy
job.c:194
↓ 5 callers
Function
job_list_is_empty
job.c:239
↓ 5 callers
Function
job_pri_less
job.c:174
↓ 5 callers
Function
make_job_with_id
job.c:112
↓ 5 callers
Function
ms_clear
ms.c:62
↓ 5 callers
Function
ms_take
ms.c:94
↓ 5 callers
Function
remove_waiting_conn
remove_waiting_conn unsets CONN_TYPE_WAITING for the connection, removes it from the waiting_conns set of every tube it's watching. Noop if connection
prot.c:398
↓ 5 callers
Function
tube_find_or_make
tube.c:97
↓ 5 callers
Function
usage
util.c:101
↓ 5 callers
Function
walresvupdate
Returns the number of bytes reserved or 0 on error.
walg.c:386
↓ 4 callers
Function
allocate_job
job.c:93
↓ 4 callers
Function
filedecref
file.c:82
↓ 4 callers
Function
fileincref
file.c:74
↓ 4 callers
Function
fill_extra_data
Copy up to body_size trailing bytes into the job, then the rest into the cmd * buffer. If c->in_job exists, this assumes that c->in_job->body is empt
prot.c:813
↓ 4 callers
Function
job_list_insert
job.c:259
↓ 4 callers
Function
kill_srvpid
Kill the srvpid (child process) with SIGTERM to give it a chance to write gcov data to the filesystem before ct kills it with SIGKILL. Do nothing in c
testserv.c:167
↓ 4 callers
Function
read_duration
Read a delay value in seconds from the given buffer and place it in duration in nanoseconds. The interface and behavior are analogous to read_u3
prot.c:1067
↓ 4 callers
Function
set
heap.c:7
↓ 4 callers
Function
tube_find
tube.c:84
↓ 4 callers
Function
walwrite
Walwrite writes j to the log w (if w is enabled). On failure, walwrite disables w and returns 0; on success, it returns 1. Unlke walresv*, walwrite sh
walg.c:178
↓ 3 callers
Function
_get_job_hash_index
job.c:19
↓ 3 callers
Function
buried_job_p
prot.c:648
↓ 3 callers
Function
connclose
conn.c:236
↓ 3 callers
Function
connsoonestjob
Return the reserved job with the earliest deadline, or NULL if there's no reserved job.
conn.c:169
↓ 3 callers
Function
do_stats
prot.c:1113
↓ 3 callers
Function
epollq_add
epollq_add schedules connection c in the s->conns heap, adds c to the epollq list to change expected operation in event notifications. rw='w' means to
prot.c:288
↓ 3 callers
Function
exist
testserv.c:34
↓ 3 callers
Function
failed
ct/ct.c:153
↓ 3 callers
Function
fileaddjob
file.c:93
↓ 3 callers
Function
less
heap.c:26
↓ 3 callers
Function
make_server_socket
net.c:214
↓ 3 callers
Function
moveresv
walg.c:240
↓ 3 callers
Function
ms_contains
ms.c:82
↓ 3 callers
Function
ms_delete
ms.c:46
↓ 3 callers
Function
needfree
walg.c:250
↓ 3 callers
Function
nstime
ct/ct.c:37
↓ 3 callers
Function
parse_size_t
util.c:139
↓ 3 callers
Function
process_queue
process_queue performs reservation for every jobs that is awaited for.
prot.c:457
↓ 3 callers
Function
prot_init
prot.c:2265
↓ 3 callers
Function
remove_buried_job
remove_buried_job returns non-NULL value if job j was in the buried state. It excludes the job from the buried list and updates counters.
prot.c:687
↓ 3 callers
Function
remove_ready_job
remove_ready_job returns non-NULL value if job j was in the ready state. It removes the job from the tube ready heap and updates counters.
prot.c:714
↓ 3 callers
Function
remove_reserved_job
prot.c:1269
↓ 3 callers
Function
reply
prot.c:342
↓ 3 callers
Function
reserve
Returns the number of bytes successfully reserved: either 0 or n.
walg.c:329
↓ 3 callers
Function
scan_line_end
Scan the given string for the sequence "\r\n" and return the line length. * Always returns at least 2 if a match is found. Returns 0 if no match. */
prot.c:761
↓ 3 callers
Function
srv_acquire_wal
srv_acquire_wal tries to lock the wal dir specified by s->wal and replay entries from it to initialize the s state with jobs. On errors it exits from
serv.c:18
↓ 3 callers
Function
srvserve
serv.c:39
↓ 3 callers
Function
tmpfd
ct/ct.c:142
↓ 3 callers
Function
walmaint
walg.c:200
↓ 2 callers
Function
conn_reserve_job
conn.c:183
↓ 2 callers
Function
conn_set_soonestjob
conn_set_soonestjob updates c->soonest_job with j if j should be handled sooner than c->soonest_job.
conn.c:160
↓ 2 callers
Function
conn_want_command
prot.c:1909
↓ 2 callers
Function
conndeadlinesoon
Return true if c has a reserved job with less than one second until its deadline.
conn.c:198
↓ 2 callers
Function
connsched
Remove c from the c->srv heap and reschedule it using the value returned by conntickat if there is an outstanding timeout in the c.
conn.c:144
↓ 2 callers
Function
connsetworker
conn.c:76
↓ 2 callers
Function
copyfd
ct/ct.c:241
↓ 2 callers
Function
do_list_tubes
prot.c:1143
↓ 2 callers
Function
fileadd
Adds f to the linked list in w, updating w->tail and w->head as necessary.
file.c:584
↓ 2 callers
Function
fileinit
file.c:572
↓ 2 callers
Function
filesize
testserv.c:355
next →
1–100 of 349, ranked by callers