{"id":4153,"date":"2022-12-20T17:39:32","date_gmt":"2022-12-20T20:39:32","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/skb_peek-man9\/"},"modified":"2022-12-20T17:39:32","modified_gmt":"2022-12-20T20:39:32","slug":"skb_peek-man9","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/skb_peek-man9\/","title":{"rendered":"SKB_PEEK (man9)"},"content":{"rendered":"<h1 align=\"center\">SKB_PEEK<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">skb_peek \u2212 peek an sk_buff<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <linux\/skbuff.h><\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"81%\">\n<p style=\"margin-top: 1em\"><b>struct sk_buff *skb_peek(struct sk_buff_head<\/b> <i>*list_<\/i><b>);<\/b><\/p>\n<\/td>\n<td width=\"8%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>skb_peek<\/b> function extracts the head element of <i>list_<\/i>, without modifying <i>list_<\/i>. It is important to note that this is not necessarily a safe operation, as <i>list_<\/i> maintains the original sk_buff, and other operations on <i>list_<\/i> may effect it. To be safe, either disable interrupts using <b>cli<\/b>(9), call <b>skb_peek<\/b>, copy the data necessary to continue, and re-enable interrupts using <b>sti<\/b>(9), or use <b>skb_dequeue<\/b>(9).<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Returns a pointer to sk_buff if there is a next element on the <i>list_<\/i>. Otherwise, returns NULL.<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Linux 1.0+<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>intro<\/b>(9), <b>skb_unlink<\/b>(9), <b>skb_dequeue<\/b>(9)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/usr\/src\/linux\/net\/appletalk\/ddp.c \/usr\/src\/linux\/net\/core\/datagram.c \/usr\/src\/linux\/net\/ipv4\/tcp.c \/usr\/src\/linux\/net\/ipv4\/udp.c \/usr\/src\/linux\/net\/unix\/af_unix.c<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Cyrus Durgin <cider@speakeasy.org><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  skb_peek \u2212 peek an sk_buff <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1222],"tags":[1226,1223,1225,1233],"class_list":["post-4153","post","type-post","status-publish","format-standard","hentry","category-9-rutinas-del-nucleo","tag-1226","tag-kernel","tag-man9","tag-skb_peek"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4153"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4153\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}