Green’s Dictionary of Slang

flag v.2

[? SE wave the white flag, to surrender + initial letters]

1. (US Und.) to release from custody.

[US]G. Henderson Keys to Crookdom 405: Flagged. Released from custody.

2. (US Und.) to arrest.

[US] ‘Jargon of the Und.’ in DN V 446: Flag, (2) To be arrested.
[US] ‘Return of Honky-Tonk Bud’ in D. Wepman et al. Life (1976) 62: They got me up tight, and you know that ain’t right. / In fact they even flagged me wrong.
[US]G. Cain Blueschild Baby 55: Her son came by [...] don’t know nothing bout no dope. They flagged him in the hall and put some stuff in his pocket. Breeze her old man got busted too.

3. (US campus, also fly a flag) to fail a test or examination; thus to get a grade F in an examination.

Maier College Terms 3: Flag a test – Flunk a test [HDAS].
[US]Dundes & Schonhorn ‘Kansas University Sl.: A New Generation’ in AS XXXVIII:3 168: To fail to pass an examination: flag.
[US]Wisconsin State Jrnl 17 Jan 1-2: Getting an ‘A’ on a test is ‘aceing’ it or ‘hooking’ it. Getting an ‘F’ or failing is called ‘flagging’.
[US]Current Sl. I:1 2/2: Flying a flag Failing a test or course.
[US]Current Sl. III:1 6: Flag, v. To fail.
[US]Eble Campus Sl. Fall 3: flag – to fail a test or course.
[US]Eble Campus Sl. Oct.
[US]Eble Sl. and Sociability 34: flag ‘make the grade F’ (‘I’m afraid I flagged that test’).

4. (US campus) to fail to attend a class.

[US]D. Burke Street Talk 2 17: She’s gonna fail if she keeps flagging class all the time.

5. (N.Z., also flag away) to give something up, to abandon.

[NZ]McGill Reed Dict. of N.Z. Sl. 78: flag/flag away Give something up, lose patience or confidence.